embedded-software
reusable software modules for embedded systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
task.c File Reference
#include "task.h"
#include "list.h"
#include "hal_general.h"
Include dependency graph for task.c:

Data Structures

struct  task_struct_t
 

Functions

 LIST_ALLOCATE (task_struct_t, task_list, TASK_MAX_LENGTH)
 
void Task_Init (void)
 
void SystemTick (void)
 
void Task_Queue (task_t fn, void *pointer)
 Adds a function to the task queue. More...
 
int8_t Task_Schedule (task_t fn, void *pointer, uint32_t delay, uint32_t period)
 Adds task to be scheduled for execution. More...
 
int8_t Task_SetIdleTask (task_t fn)
 Sets a task to run whenever the task queue is empty / no tasks due to run. More...
 
void Task_Remove (task_t fn, void *pointer)
 Removes Task. More...
 
void WaitMs (uint32_t wait)
 
uint8_t Task_IsScheduled (task_t fn)
 
void Task_ChangePeriod (task_t fn, uint32_t period, uint8_t update_next_time)
 

Variables

task_t idle_task
 

Function Documentation

LIST_ALLOCATE ( task_struct_t  ,
task_list  ,
TASK_MAX_LENGTH   
)

Variable Documentation

task_t idle_task