PMSIS API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Task management

OS tasks management. More...

Typedefs

typedef void(* func_t )(void *arg)
 Function type. More...
 

Functions

int pi_os_open (struct pi_device *device)
 Open OS. More...
 
void pi_os_close (struct pi_device *device)
 Close OS. More...
 
static int pmsis_kickoff (void *arg)
 Kickoff the system. More...
 
static void pmsis_exit (int err)
 Stop runtime and exit platform. More...
 

Description

This part details tasks management along with semaphores and mutexes.

Typedef Documentation

typedef void(* func_t)(void *arg)

Function type taking a pointer to void and returning void.

Function Documentation

void pi_os_close ( struct pi_device *  device)
Parameters
devicePointer to pi_device.
int pi_os_open ( struct pi_device *  device)
Parameters
devicePointer 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
errExit status.
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
argParameter given to main task/thread.
Return values
0If operation is successful.
ERRNOAn 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.