Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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

Anchor
1080553
1080553
Miscellaneous

Anchor
1108941
1108941
Table C-17 shows the difference in API for miscellaneous services.

Anchor
1181627
1181627
 

HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)

Anchor
1181952
1181952
µC/OS-II (os_core.c)

Table Cell (td)

Anchor
1181954
1181954
µC/OS-III (os_core.c)

Table Cell (td)

Anchor
1181956
1181956
Note

Table Row (tr)
Table Cell (td)
rowspan5

Anchor
1181958
1181958
INT8U

Anchor
1181959
1181959
OSEventNameGet(

Anchor
1181960
1181960
OS_EVENT *pevent,

Anchor
1181961
1181961
INT8U **pname,

Anchor
1181962
1181962
INT8U *perr);

Table Cell (td)
rowspan5

Anchor
1181964
1181964
 

Table Cell (td)
rowspan5

Anchor
1181966
1181966
(1)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan5

Anchor
1181992
1181992
void

Anchor
1181993
1181993
OSEventNameSet(

Anchor
1181994
1181994
OS_EVENT *pevent,

Anchor
1181995
1181995
INT8U *pname,

Anchor
1181996
1181996
INT8U *perr);

Table Cell (td)
rowspan5

Anchor
1181998
1181998
 

Table Cell (td)
rowspan5

Anchor
1182000
1182000
(1)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan7

Anchor
1182026
1182026
INT16U

Anchor
1182027
1182027
OSEventPendMulti(

Anchor
1182028
1182028
OS_EVENT **pevent_pend,

Anchor
1182029
1182029
OS_EVENT **pevent_rdy,

Anchor
1182030
1182030
void **pmsgs_rdy,

Anchor
1182031
1182031
INT32U timeout,

Anchor
1182032
1182032
INT8U *perr);

Table Cell (td)
rowspan7

Anchor
1182034
1182034
OS_OBJ_QTY

Anchor
1182035
1182035
OSPendMulti(

Anchor
1182036
1182036
OS_PEND_DATA *p_pend_data_tbl,

Anchor
1182037
1182037
OS_OBJ_QTY tbl_size,

Anchor
1182038
1182038
OS_TICK timeout,

Anchor
1182039
1182039
OS_OPT opt,

Anchor
1182040
1182040
OS_ERR *p_err);

Table Cell (td)
rowspan7

Anchor
1182042
1182042
(2)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan3

Anchor
1182080
1182080
void

Anchor
1182081
1182081
OSInit(void)

Table Cell (td)
rowspan3

Anchor
1182083
1182083
void

Anchor
1182084
1182084
OSInit(

Anchor
1182085
1182085
OS_ERR *p_err);

Table Cell (td)
rowspan3

Anchor
1182087
1182087
(3)

Table Row (tr)

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan2

Anchor
1182101
1182101
void

Anchor
1182102
1182102
OSIntEnter(void)

Table Cell (td)
rowspan2

Anchor
1182104
1182104
void

Anchor
1182105
1182105
OSIntEnter(void);

Table Cell (td)
rowspan2

Anchor
1182107
1182107
 

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan2

Anchor
1182115
1182115
void

Anchor
1182116
1182116
OSIntExit(void)

Table Cell (td)
rowspan2

Anchor
1182118
1182118
void

Anchor
1182119
1182119
OSIntExit(void)

Table Cell (td)
rowspan2

Anchor
1182121
1182121
 

Table Row (tr)

Table Row (tr)
Table Cell (td)

Anchor
1182129
1182129
 

Table Cell (td)

Anchor
1182131
1182131
void

Anchor
1182132
1182132
OSSched(void);

Table Cell (td)

Anchor
1182134
1182134
 

Table Row (tr)
Table Cell (td)
rowspan3

Anchor
1182136
1182136
void

Anchor
1182137
1182137
OSSchedLock(void)

Table Cell (td)
rowspan3

Anchor
1182139
1182139
void

Anchor
1182140
1182140
OSSchedLock(

Anchor
1182141
1182141
OS_ERR *p_err);

Table Cell (td)
rowspan3

Anchor
1182143
1182143
(4)

Table Row (tr)

Table Row (tr)

Table Row (tr)
Table Cell (td)

Anchor
1182159
1182159
 

Table Cell (td)

Anchor
1182161
1182161
void

Anchor
1182162
1182162
OSSchedRoundRobinCfg(

Anchor
1182163
1182163
CPU_BOOLEAN en,

Anchor
1182164
1182164
OS_TICK dflt_time_quanta,

Anchor
1182165
1182165
OS_ERR *p_err);

Table Cell (td)

Anchor
1182167
1182167
(5)

Anchor
1182168
1182168
 

Table Row (tr)
Table Cell (td)

Anchor
1182170
1182170
 

Table Cell (td)

Anchor
1182172
1182172
void

Anchor
1182173
1182173
OSSchedRoundRobinYield(

Anchor
1182174
1182174
OS_ERR *p_err);

Table Cell (td)

Anchor
1182176
1182176
(6)

Table Row (tr)
Table Cell (td)
rowspan2

Anchor
1182178
1182178
void

Anchor
1182179
1182179
OSSchedUnlock(void)

Table Cell (td)
rowspan2

Anchor
1182181
1182181
void

Anchor
1182182
1182182
OSSchedUnlock(

Anchor
1182183
1182183
OS_ERR *p_err);

Table Cell (td)
rowspan2

Anchor
1182185
1182185
(7)

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan2

Anchor
1182193
1182193
void

Anchor
1182194
1182194
OSStart(void)

Table Cell (td)
rowspan2

Anchor
1182196
1182196
void

Anchor
1182197
1182197
OSStart(void);

Table Cell (td)
rowspan2

Anchor
1182199
1182199
 

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan3

Anchor
1182207
1182207
void

Anchor
1182208
1182208
OSStatInit(void)

Table Cell (td)
rowspan3

Anchor
1182210
1182210
void

Anchor
1182211
1182211
OSStatTaskCPUUsageInit(

Anchor
1182212
1182212
OS_ERR *p_err);

Table Cell (td)
rowspan3

Anchor
1182214
1182214
(8)

Anchor
1182215
1182215
 

Table Row (tr)

Table Row (tr)

Table Row (tr)
Table Cell (td)
rowspan3

Anchor
1182229
1182229
INT16U

Anchor
1182230
1182230
OSVersion(void)

Table Cell (td)
rowspan3

Anchor
1182232
1182232
CPU_INT16U

Anchor
1182233
1182233
OSVersion(

Anchor
1182234
1182234
OS_ERR *p_err);

Table Cell (td)
rowspan3

Anchor
1182236
1182236
(9)

Table Row (tr)

Table Row (tr)

Anchor
1109009
1109009
 

    1. Anchor
      1159632
      1159632
      Miscellaneous API
      1. Anchor
        1080623
        1080623
        Objects in µC/OS-III are named when they are created and these functions are not required in µC/OS-III.
      2. Anchor
        1080624
        1080624
        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.
      3. Anchor
        1182571
        1182571
        µ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.
      4. Anchor
        1080626
        1080626
        An error code is returned in µC/OS-III for this function.
      5. Anchor
        1080627
        1080627
        Enable or disable µC/OS-III’s round-robin scheduling at run time, as well as change the default time quanta.
      6. Anchor
        1080628
        1080628
        A task that completes its work before its time quanta expires may yield the CPU to another task at the same priority.
      7. Anchor
        1080629
        1080629
        An error code is returned in µC/OS-III for this function.
      8. Anchor
        1080630
        1080630
        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.
      9. Anchor
        1080631
        1080631
        An error code is returned in µC/OS-III for this function.