R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_task.c File Reference
#include "R_RTOS_scheduler.h"
#include "R_RTOS_task.h"
#include "R_RTOS_stack.h"
#include "R_RTOS_sem.h"
#include "R_RTOS_timer.h"
#include "R_RTOS_events.h"
#include "R_RTOS_memMngr.h"

Functions

void os_SCHEDULE (void)
 Schedules the next ready task according to its priority. More...
 
RetCode tsk_tskInit (const TskID tskID, const TskStartAddr const strtAddr, const TskEndAddr const endAddr, const StackSize stkSze)
 Creates a task according to the provided input parameters. More...
 
RetCode os_IDLETskInit (const TskStartAddr const strtAddr)
 Creates the IDLE Task. More...
 
RetCode tsk_tskDestroy (TskTCB *const tsk)
 Destroy the given task. More...
 
RetCode tsk_ClrEvt (PTskTCB const tsk, PSyncEle const syncEle)
 Clear the event that currently blocks the task. More...
 
RetCode tsk_SetEvt (PTskTCB const tsk, PSyncEle const syncEle)
 Set the event described by syncEle for the specified task. More...
 
RetCode tsk_SetInactive (PTskTCB const tsk, TskState tskInactvState)
 Set the specified task inactive, remove from active wait queue and set the specified new task state. More...
 
RetCode tsk_ChngePrio (PTskTCB const tsk, const TskPrio newTskPrio)
 

Variables

BitsOSFlags gOS_FLAGS
 Flags used for maintaining the OS. More...
 
TskTCBp_cur_tsk_tcb
 Pointer to currently running task's tskTCB. More...
 
PTskTCB const pIDLETsk = &( tsk_AR[0] )
 Constant pointer to the IDLE Task's tskTCB. More...
 

Detailed Description