Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10805531080553 Miscellaneous Anchor11089411108941 Table C-17 The table below shows the difference in API for miscellaneous services.anchor

Panel

...

1181954
HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)
Anchor
11819521181952
titleMiscellaneous API


µC/OS-II (os_core.c)
Table Cell (td)
Anchor
1181954
µC/OS-III (os_core.c)
Table Cell (td) Anchor1181956
1181956
Note
Table Row (tr) Table Cell (td)
rowspan5
Anchor11819581181958 INT8U Anchor11819591181959 OSEventNameGet( Anchor11819601181960 OS_EVENT *pevent, Anchor11819611181961 INT8U **pname, Anchor11819621181962 INT8U *perr); Table Cell (td)
rowspan5
Anchor11819641181964   Table Cell (td)
rowspan5
Anchor11819661181966 (1) Table Row (tr) Table Row (tr) Table Row (tr) Table Row (tr) Table Row (tr) Table Cell (td)
rowspan5
Anchor11819921181992 void Anchor11819931181993 OSEventNameSet( Anchor11819941181994 OS_EVENT *pevent, Anchor11819951181995 INT8U *pname, Anchor11819961181996 INT8U *perr); Table Cell (td)
rowspan5
Anchor11819981181998   Table Cell (td)
rowspan5
Anchor11820001182000 (1) Table Row (tr) Table Row (tr) Table Row (tr) Table Row (tr) Table Row (tr) Table Cell (td)
rowspan7
Anchor11820261182026 INT16U Anchor11820271182027 OSEventPendMulti( Anchor11820281182028 OS_EVENT **pevent_pend, Anchor11820291182029 OS_EVENT **pevent_rdy, Anchor11820301182030 void **pmsgs_rdy, Anchor11820311182031 INT32U timeout, Anchor11820321182032 INT8U *perr); Table Cell (td)
rowspan7
Anchor11820341182034 OS_OBJ_QTY Anchor11820351182035 OSPendMulti( Anchor11820361182036 OS_PEND_DATA *p_pend_data_tbl, Anchor11820371182037 OS_OBJ_QTY tbl_size, Anchor11820381182038 OS_TICK timeout, Anchor11820391182039 OS_OPT opt, Anchor11820401182040 OS_ERR *p_err); Table Cell (td)
rowspan7
Anchor11820421182042 (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
Anchor11820801182080 void Anchor11820811182081 OSInit(void) Table Cell (td)
rowspan3
Anchor11820831182083 void Anchor11820841182084 OSInit( Anchor11820851182085 OS_ERR *p_err); Table Cell (td)
rowspan3
Anchor11820871182087 (3) Table Row (tr) Table Row (tr) Table Row (tr) Table Cell (td)
rowspan2
Anchor11821011182101 void Anchor11821021182102 OSIntEnter(void) Table Cell (td)
rowspan2
Anchor11821041182104 void Anchor11821051182105 OSIntEnter(void); Table Cell (td)
rowspan2
Anchor11821071182107   Table Row (tr) Table Row (tr) Table Cell (td)
rowspan2
Anchor11821151182115 void Anchor11821161182116 OSIntExit(void) Table Cell (td)
rowspan2
Anchor11821181182118 void Anchor11821191182119 OSIntExit(void) Table Cell (td)
rowspan2
Anchor11821211182121   Table Row (tr) Table Row (tr) Table Cell (td) Anchor11821291182129   Table Cell (td) Anchor11821311182131 void Anchor11821321182132 OSSched(void); Table Cell (td) Anchor11821341182134   Table Row (tr) Table Cell (td)
rowspan3
Anchor11821361182136 void Anchor11821371182137 OSSchedLock(void) Table Cell (td)
rowspan3
Anchor11821391182139 void Anchor11821401182140 OSSchedLock( Anchor11821411182141 OS_ERR *p_err); Table Cell (td)
rowspan3
Anchor11821431182143 (4) Table Row (tr) Table Row (tr) Table Row (tr) Table Cell (td) Anchor11821591182159   Table Cell (td) Anchor11821611182161 void Anchor11821621182162 OSSchedRoundRobinCfg( Anchor11821631182163 CPU_BOOLEAN en, Anchor11821641182164 OS_TICK dflt_time_quanta, Anchor11821651182165 OS_ERR *p_err); Table Cell (td) Anchor11821671182167 (5) Anchor11821681182168   Table Row (tr) Table Cell (td) Anchor11821701182170   Table Cell (td) Anchor11821721182172 void Anchor11821731182173 OSSchedRoundRobinYield( Anchor11821741182174 OS_ERR *p_err); Table Cell (td) Anchor11821761182176 (6) Table Row (tr) Table Cell (td)
rowspan2
Anchor11821781182178 void Anchor11821791182179 OSSchedUnlock(void) Table Cell (td)
rowspan2
Anchor11821811182181 void Anchor11821821182182 OSSchedUnlock( Anchor11821831182183 OS_ERR *p_err); Table Cell (td)
rowspan2
Anchor11821851182185 (7) Table Row (tr) Table Row (tr) Table Cell (td)
rowspan2
Anchor11821931182193 void Anchor11821941182194 OSStart(void) Table Cell (td)
rowspan2
Anchor11821961182196 void Anchor11821971182197 OSStart(void); Table Cell (td)
rowspan2
Anchor11821991182199   Table Row (tr) Table Row (tr) Table Cell (td)
rowspan3
Anchor11822071182207 void Anchor11822081182208 OSStatInit(void) Table Cell (td)
rowspan3
Anchor11822101182210 void Anchor11822111182211 OSStatTaskCPUUsageInit( Anchor11822121182212 OS_ERR *p_err); Table Cell (td)
rowspan3
Anchor11822141182214 (8) Anchor11822151182215   Table Row (tr) Table Row (tr) Table Row (tr) Table Cell (td)
rowspan3
Anchor11822291182229 INT16U Anchor11822301182230 OSVersion(void) Table Cell (td)
rowspan3
Anchor11822321182232 CPU_INT16U Anchor11822331182233 OSVersion( Anchor11822341182234 OS_ERR *p_err); Table Cell (td)
rowspan3
Anchor11822361182236 (9) Table Row (tr) Table Row (tr)

...

INT8U
OSEventNameGet(
    OS_EVENT   *pevent,
    INT8U     **pname,
    INT8U      *perr);

(1)

void
OSEventNameSet(
    OS_EVENT   *pevent,
    INT8U      *pname,
    INT8U      *perr);

(1)
INT16U
OSEventPendMulti(
    OS_EVENT  **pevent_pend,
    OS_EVENT  **pevent_rdy,
    void      **pmsgs_rdy,
    INT32U      timeout,
    INT8U      *perr);

(2)
void
OSInit(void)
void
OSInit(
    OS_ERR        *p_err);
(3)
void
OSIntEnter(void)
void
OSIntEnter(void);

void
OSIntExit(void)
void
OSIntExit(void)


void
OSSched(void);

void
OSSchedLock(void)
void
OSSchedLock(
    OS_ERR        *p_err);
(4)

void
OSSchedRoundRobinCfg(
    CPU_BOOLEAN    en,
    OS_TICK        dflt_time_quanta,
    OS_ERR        *p_err);

(5)



void
OSSchedRoundRobinYield(
    OS_ERR        *p_err);
(6)
void
OSSchedUnlock(void)
void
OSSchedUnlock(
    OS_ERR        *p_err);
(7)
void
OSStart(void)
void
OSStart(void);

void
OSStatInit(void)
void
OSStatTaskCPUUsageInit(
    OS_ERR        *p_err);
(8)
INT16U
OSVersion(void)
CPU_INT16U
OSVersion(
    OS_ERR        *p_err);
(9)



Panel
bgColor#f0f0f0

(1) Objects in µC/OS-III are named when they are created and these functions are not required in µC/OS-III.

...

(2) Multipend no longer exist in µC/OS-III

...

.

(3) µ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) An error code is returned in µC/OS-III for this function.

...

(5) Enable or disable µC/OS-III’s round-robin scheduling at run time, as well as change the default time quanta.

...

(6) A task that completes its work before its time quanta expires may yield the CPU to another task at the same priority.

...

(7) An error code is returned in µC/OS-III for this function.

...

(8) 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) An error code is returned in µC/OS-III for this function.