The os_sys_init_prio function initializes and starts the
Real-Time eXecutive (RTX) kernel.
The task argument points to the task to start after the
kernel is initialized.
The priority argument specifies the priority for the
task. The default task priority is 1. Priority 0 is reserved
for the Idle Task. If a value of 0 is specified for the
priority, it is automatically replaced with a value of 1.
Priority 255 is also reserved.
The os_sys_init_prio function is in the RL-RTX library. The
prototype is defined in rtl.h.
Note
The os_sys_init_prio function must be called from the
main C function.
The RTK kernel uses the default stack size, which is defined in
rtx_config.c, for the task.
Priority value of 255 represents the most important task.
Return Value
The os_sys_init_prio function does not return. Program
execution continues with the task identified by the task
argument.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.