...
Files
os.h/os_core.c
Prototype
Code Block |
---|
void OSSchedRoundRobinCfg (CPU_BOOLEAN en,
OS_TICK dflt_time_quanta,
OS_ERR *p_err) |
Arguments
en
when set to DEF_ENABLED
enables round-robin scheduling, and when set to DEF_DISABLED
disables it.
...
Notes/Warnings
None
Example Usage
Code Block | ||
---|---|---|
| ||
void main (void)
{
OS_ERR err;
:
OSInit(&err); /* Initialize µC/OS-III */
:
:
OSSchedRoundRobinCfg(DEF_ENABLED,
10,
&err);
/* Check "err" */
:
:
OSStart(&err); /* Start Multitasking */
} |