My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
cpu_task.c File Reference
#include <sw_types.h>
#include <task.h>
#include <cpu_task.h>
#include <cpu_asm.h>
#include <sw_debug.h>
#include <unused.h>

Functions

int cpu_task_init (void *task)
 Archiecture specific task init function. More...
 
int cpu_task_exit (void *task)
 Archiecture specific task exit function. More...
 
void print_cpu_task_regs (void *task)
 Print task register values. More...
 

Function Documentation

int cpu_task_exit ( void *  task)

Archiecture specific task exit function.

Thius function get called before the task destruction.

Parameters
taskPointer to task structure
Returns
otz_return_t: OTZ_OK
OTZ_* - An implementation-defined error code for any other error.
int cpu_task_init ( void *  task)

Archiecture specific task init function.

This function get called from start task operation. Initialize task registers.

Parameters
taskPointer to task structure
Returns
otz_return_t: OTZ_OK
OTZ_* - An implementation-defined error code for any other error.
void print_cpu_task_regs ( void *  task)

Print task register values.

Parameters
taskPointer to the task structure