| 
    EmbeddedEtcher
    
   | 
 
#include <stdlib.h>#include <stdio.h>#include <stdint.h>#include <string.h>#include "scheduler.h"#include "error.h"#include "heap.h"#include "printf.h"#include "ossettings.h"#include "../platform/system_timer.h"
Functions | |
| uint32_t | osSchedulerGetSysT (void) | 
| uint8_t | osTaskCreate (void(*ifnc_ptr)(void *), char *itask_name, void *iarguments, uint8_t ipriority, const osTCB_t *oTaskHandle) | 
| void | osTaskDelete (osTCB_t *iotask) | 
| void | osTaskDelay (uint8_t idelay) | 
| void | osTaskDelayUntil (uint32_t iwakeup_time, uint8_t idelay) | 
| void | osRunScheduler (void) | 
| void | osPrintTask (uint8_t iindex) | 
| void | osPrintAllTasks (void) | 
| void osPrintAllTasks | ( | void | ) | 
Print all information about all tasks.
| void osPrintTask | ( | uint8_t | iindex | ) | 
Print all information about one task.
| iindex | Index in the TCB array. | 
| void osRunScheduler | ( | void | ) | 
System core. Scheduler needs to be executed by a timer interrupt.
| uint32_t osSchedulerGetSysT | ( | void | ) | 
Get the system time.
| Gives | back the number of ticks since system has been initialized. | 
| uint8_t osTaskCreate | ( | void(*)(void *) | ifnc_ptr, | 
| char * | itask_name, | ||
| void * | iarguments, | ||
| uint8_t | ipriority, | ||
| const osTCB_t * | oTaskHandle | ||
| ) | 
Spawn a task.
| ifnc_ptr | Pointer to the task function. | 
| itask_name | Internal task name. | 
| iarguments | Enables passing user-defined arguments to the task. | 
| ipriority | A higher value means a higher priority of the task. | 
| oTaskHandle | Pointer to TCB. | 
| 1 | (task has been spawned) or 0 (FAILED) | 
| void osTaskDelay | ( | uint8_t | idelay | ) | 
Delay function. DO NOT USE FOR PERIODIC TASKS!
| idelay | Delay in system ticks. | 
| void osTaskDelayUntil | ( | uint32_t | iwakeup_time, | 
| uint8_t | idelay | ||
| ) | 
Delay until function. DO USE FOR PERIODIC TASKS!
| iwakeup_time | Time when the task execution started. | 
| idelay | Number of system ticks until the task shall be executed again. | 
| void osTaskDelete | ( | osTCB_t * | iotask | ) | 
Simply delete task by setting the function pointer to NULL.
| iotask | Pointer to TCB. | 
 1.8.13