Versions Compared

Key

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

...

Anchor10797921079792 Variable Name Changes Anchor10797931079793Some of the variable names in µC/OS-II are changed for µC/OS-III to be more consistent with coding conventions. Significant variables are shown in Table C-6the table below.anchor

Panel

...

1084132
HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)
Anchor
10841301084130
titleChanges in variable naming


µC/OS-II (ucos_ii.h)
Table Cell (td)
Anchor
1084132
µC/OS-III (os.h)
Table Cell (td) Anchor1084134
1084134
Note
Table Row (tr) Table Cell (td) Anchor10841361084136
OSCtxSwCtr
td
Anchor10841381084138
OSTaskCtxSwCtr
Table Cell (td) Anchor10841401084140   Table Row (tr) Table Cell (td) Anchor10841421084142

OSCPUUsage
td
Anchor10841441084144
OSStatTaskCPUUsage
Table Cell (td) Anchor10841461084146
(1)
Table Row (tr) Table Cell (td)anchor1084148
1084148
OSIdleCtr
Table Cell (td) Anchor10841501084150
OSIdleTaskCtr
td
Anchor10841521084152   Table Row (tr) Table Cell (td) Anchor10841541084154

OSIdleCtrMax
td
Anchor10841561084156
OSIdleTaskCtrMax
Table Cell (td) Anchor10841581084158   Table Row (tr)td
Anchor10841601084160

OSIntNesting
td
Anchor10841621084162
OSIntNestingCtr
Table Cell (td) Anchor10841641084164
(2)
Table Row (tr) Table Cell (td) Anchor10841661084166
OSPrioCur
Table Cell (td) Anchor10841681084168
OSPrioCur
Table Cell (td) Anchor10841701084170  
Table Row (tr) Table Cell (td) Anchor10841721084172

OSPrioHighRdy
td
Anchor10841741084174
OSPrioHighRdy
Table Cell (td) Anchor10841761084176   Table Row (tr)td
Anchor10841781084178

OSRunning
td
Anchor10841801084180
OSRunning
Table Cell (td) Anchor10841821084182   Table Row (tr) Table Cell (td)anchor1084184
1084184

OSSchedNesting
Table Cell (td) Anchor10841861084186
OSSchedLockNestingCtr
Table Cell (td) Anchor10841881084188
(3)
Table Row (tr) Table Cell (td) Anchor10841901084190   Table Cell (td) Anchor10841921084192

OSSchedLockTimeMax
Table Cell (td) Anchor10841941084194   Table Row (tr)td
Anchor10841961084196

OSTaskCtr
td
Anchor10841981084198
OSTaskQty
Table Cell (td) Anchor10842001084200   Table Row (tr) Table Cell (td) Anchor10842021084202

OSTCBCur
Table Cell (td) Anchor1084204
1084204
OSTCBCurPtr
Table Cell (td) Anchor1084206
1084206
(4)
Table Row (tr) Table Cell (td) Anchor10842081084208
OSTCBHighRdy
td
Anchor10842101084210
OSTCBHighRdyPtr
Table Cell (td) Anchor10842121084212
(4)
Table Row (tr) Table Cell (td)anchor1084214
1084214
OSTime
Table Cell (td)anchor1084216
1084216
OSTickCtr
Table Cell (td) Anchor10842181084218
(5)
Table Row (tr) Table Cell (td) Anchor10842201084220
OSTmrTime
Table Cell (td) Anchor1084222
1084222
OSTmrTickCtr
td



anchor  
Panel
bgColor
10842241084224

...

#f0f0f0

(1) In µC/OS-II, OSCPUUsage

...

 contains the total CPU utilization in percentage format. If the CPU is busy 12% of the time, OSCPUUsage

...

 has the value 12. In µC/OS-III, the same information is provided

...

in OSStatTaskCPUUsage. However, as of µC/OS-III V3.03.00, the resolution

...

of OSStatTaskCPUUsage

...

 is 1/100th of a percent or, 0.00% (value

...

is 0) to 100.00% (value

...

is 10,000).

...

(2) In µC/OS-II, OSIntNesting

...

 keeps track of the number of interrupts nesting. µC/OS-III

...

uses OSIntNestingCtr. The

...

Ctrhas been added to indicate that this variable is a counter.

...

(3)  OSSchedNesting represents the number of

...

times OSSchedLock()

...

 is called. µC/OS-III renames this variable

...

to OSSchedLockNestingCtr

...

 to better represent the variable’s meaning.

...

(4) In µC/OS-II, OSTCBCur

...

 and OSTCBHighRdy

...

 are pointers to

...

the OS_TCB

...

 of the current task, and to

...

the OS_TCB

...

 of the highest-priority task that is ready-to-run. In µC/OS-III, these are renamed by adding the

...

Ptrto indicate that they are pointers.

...

(5) The internal counter of the number of ticks since power up, or the last time the variable was changed

...

through OSTimeSet(), has been renamed to better reflect its function.