R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_scheduler.h
Go to the documentation of this file.
1 
13 #ifndef HEADERS_R_RTOS_SCHEDULER_H_
14 #define HEADERS_R_RTOS_SCHEDULER_H_
15 
16 #include "R_RTOS_inc.h"
17 
27 typedef struct tskPrioArEle
28 {
32 
36 typedef uint16_t PrioARFlgs;
37 
45 
57 
63 void os_INIT_Scheduler( void );
64 
73 void os_SCHEDULE( void );
74 
79 #endif /* HEADERS_R_RTOS_SCHEDULER_H_ */
void os_SCHEDULE(void)
Schedules the next ready task according to its priority.
Definition: R_RTOS_scheduler.c:306
TskID lstTsk
TskID of the last task in the priority container.
Definition: R_RTOS_scheduler.h:30
Defines, Typedefs and Macros for the whole system.
struct tskPrioArEle TskPrioArEle
tskPrioArEle
Task priority element for the second dimension of the scheduler.
Definition: R_RTOS_scheduler.h:27
RetCode tsk_rmvTskActvTskLst(PTskTCB const tsk)
Delete a Task from the active task list.
Definition: R_RTOS_scheduler.c:80
void os_INIT_Scheduler(void)
Initialize the Scheduler mechanism.
Definition: R_RTOS_scheduler.c:295
uint8_t TskID
Task identification number (ID).
Definition: R_RTOS_inc.h:532
struct tskPrioArEle * PTskPrioArEle
Pointer to a tskPrioArEle.
Task Control Block.
Definition: R_RTOS_inc.h:1322
uint16_t PrioARFlgs
Used for priority array flags.
Definition: R_RTOS_scheduler.h:36
uint8_t RetCode
Return codes for functions.
Definition: R_RTOS_inc.h:1424
TskID fstTsk
TskID of the first task in the priority container.
Definition: R_RTOS_scheduler.h:29
RetCode tsk_insrtTskActvTskLst(PTskTCB const tsk)
Insert a task into the active task list.
Definition: R_RTOS_scheduler.c:158