OS tasks management.
More...
This part details tasks management along with semaphores and mutexes.
typedef void(* func_t)(void *arg) |
Function type taking a pointer to void and returning void.
void pi_os_close |
( |
struct pi_device * |
device | ) |
|
- Parameters
-
device | Pointer to pi_device. |
int pi_os_open |
( |
struct pi_device * |
device | ) |
|
- Parameters
-
device | Pointer to pi_device. |
- Returns
- xxx.
static void pmsis_exit |
( |
int |
err | ) |
|
|
inlinestatic |
This function stops runtime and exits platform. Once it is called, there is no return.
- Parameters
-
static int pmsis_kickoff |
( |
void * |
arg | ) |
|
|
inlinestatic |
This function start the system, prepares the event kernel, IRQ,... Completely OS dependant might do anything from a function call to main task creation.
- Parameters
-
arg | Parameter given to main task/thread. |
- Return values
-
0 | If operation is successful. |
ERRNO | An error code otherwise. |
- Note
- This function must be called in the main in order to launch the event kernel, enable IRQ, create the main task and start the scheduler.