kernel_start. STMicroelectronics OS20
Annonce
Annonce
OS20 User Manual 16.2 OS20 function descriptions
kernel_start
Start preemptive scheduling regime
Synopsis
#include <kernel.h> int kernel_start( void );
Arguments
None
Results
Returns 0 for success, -1 if an error occurs.
Errors
Failure is caused by insufficient space to create the scheduler trap handler.
Description kernel_start() must be called before any tasks are created. It creates and installs the scheduler trap handler and enables the desired scheduler traps. On return from the function the preemptive scheduler is running, and the calling function is installed as the first OS20 task, and is now running at MAX_USER_PRIORITY .
Note: This function may be called automatically if st20cc runtime os20 is specified when linking; see
Chapter 2: Getting started on page 9 . It is important that this function is not called
twice.
Callable from
Not applicable (must be called before scheduler starts).
See also
188
ADCS 7473749D
Download
Annonce