Memory Management API Changes
The table below shows the difference in API for memory management.
µC/OS-II ( | µC/OS-III ( | Note |
|---|---|---|
|
| (1) |
|
|
|
|
|
|
|
| (2) |
|
|
|
|
| (3) |
(1) In µC/OS-II, OSMemCreate() returns the address of an OS_MEM object, which is used as the “handle” to the newly created memory partition. In µC/OS-III, the application must allocate storage for an OS_MEM, which serves the same purpose. The benefit in µC/OS-III is that it is not necessary to predetermine the number of memory partitions at compile time.
(2) µC/OS-III does not need an OSMemNameSet() since the name of the memory partition is passed as an argument to OSMemCreate().
(3) µC/OS-III does not support query calls.