OSIdleTaskCtr
This variable contains a counter that is incremented every time the idle task infinite loop runs.
OSRunning
When non-zero, this variable indicates that multitasking has started.
OSTaskCtxSwCtr
...
Include Page |
---|
| css.Migrating from uC-OS-II to uC-OS-III.css |
---|
| css.Migrating from uC-OS-II to uC-OS-III.css |
---|
|
Include Page |
---|
| css.webworks.css |
---|
| css.webworks.css |
---|
|
Miscellaneous Table C-17 shows the difference in API for miscellaneous services. HTML Table |
---|
|
Table Row (tr) |
---|
Table Cell (td) |
---|
µC/OS-II (os_core.c) |
Table Cell (td) |
---|
µC/OS-III (os_core.c) |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| INT8U OSEventNameGet( OS_EVENT *pevent, INT8U **pname, INT8U *perr); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSEventNameSet( OS_EVENT *pevent, INT8U *pname, INT8U *perr); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| INT16U OSEventPendMulti( OS_EVENT **pevent_pend, OS_EVENT **pevent_rdy, void **pmsgs_rdy, INT32U timeout, INT8U *perr); |
Table Cell (td) |
---|
| OS_OBJ_QTY OSPendMulti( OS_PEND_DATA *p_pend_data_tbl, OS_OBJ_QTY tbl_size, OS_TICK timeout, OS_OPT opt, OS_ERR *p_err); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSInit(void) |
Table Cell (td) |
---|
| void OSInit( OS_ERR *p_err); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSIntEnter(void) |
Table Cell (td) |
---|
| void OSIntEnter(void); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSIntExit(void) |
Table Cell (td) |
---|
| void OSIntExit(void) |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
void OSSched(void); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSSchedLock(void) |
Table Cell (td) |
---|
| void OSSchedLock( OS_ERR *p_err); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
void OSSchedRoundRobinCfg( CPU_BOOLEAN en, OS_TICK dflt_time_quanta, OS_ERR *p_err); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
void OSSchedRoundRobinYield( OS_ERR *p_err); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSSchedUnlock(void) |
Table Cell (td) |
---|
| void OSSchedUnlock( OS_ERR *p_err); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSStart(void) |
Table Cell (td) |
---|
| void OSStart(void); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| void OSStatInit(void) |
Table Cell (td) |
---|
| void OSStatTaskCPUUsageInit( OS_ERR *p_err); |
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| INT16U OSVersion(void) |
Table Cell (td) |
---|
| CPU_INT16U OSVersion( OS_ERR *p_err); |
|
|
- Miscellaneous API
- Objects in µC/OS-III are named when they are created and these functions are not required in µC/OS-III.
- The implementation of the multi-pend functionality is changed from µC/OS-II. However, the purpose of multi-pend is the same, to allow a task to pend (or wait) on multiple objects. In µC/OS-III, however, it is possible to only multi-pend on semaphores and message queues and not event flags and mutexes.
- µC/OS-III returns an error code for this function. Initialization is successful if OS_ERR_NONE is received from OSInit(). In µC/OS-II, there is no way of detecting an error in the configuration that caused OSInit() to fail.
- An error code is returned in µC/OS-III for this function.
- Enable or disable µC/OS-III’s round-robin scheduling at run time, as well as change the default time quanta.
- A task that completes its work before its time quanta expires may yield the CPU to another task at the same priority.
- An error code is returned in µC/OS-III for this function.
- Note the change in name for the function that computes the “capacity” of the CPU for the purpose of computing CPU usage at run-time.
- An error code is returned in µC/OS-III for this function.