Versions Compared

Key

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

...

void  OSSchedRoundRobinCfg (CPU_BOOLEAN  en,

...

                            OS_TICK      dflt_time_quanta,

...

                            OS_ERR      *p_err)

...

...

File

...

Called from

...

...

Code enabled by

...

...

os_core.c

...

Task or startup code

...

...

OS_CFG_SCHED_ROUND_ROBIN_EN

...

1002753OSSchedRoundRobinCfg() is used to enable or disable round-robin scheduling. Anchor10027541002754

Arguments

Anchor10027551002755en Anchor10027561002756

when set to DEF_ENABLED enables round-robin scheduling, and when set to DEF_DISABLED disables it.

Anchor10027571002757dflt_time_quanta Anchor10027581002758

is the default time quanta given to a task. This value is used when a task is created and you specify a value of 0 for the time quanta. In other words, if the user did not specify a non-zero for the task’s time quanta, this is the value that will be used. If passing 0 for this argument, µC/OS-III will assume a time quanta of 1/10 the tick rate. For example, if the tick rate is 1000 Hz and 0 is passed for dflt_time_quanta then, µC/OS-III will set the time quanta to 10 milliseconds.

...

1002759p_err Anchor10027601002760

is a pointer to a variable that is used to hold an error code:

...

classWebWorks_Indent_1

...

OS_ERR_NONE

...

classWebWorks_Indent_2

...

if the call is successful.

...

...

Returned Value

...

None Anchor10027651002765

Notes/Warnings

...

10027661002766None Anchor10028141002814

Example

...

rowspan15

...