R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_timer.c File Reference
#include "TimerFunc.h"
#include "InterruptFunc.h"
#include "R_RTOS_timer.h"
#include "R_RTOS_task.h"
#include "R_RTOS_memMngr.h"

Functions

void os_SCHEDULE (void)
 Schedules the next ready task according to its priority. More...
 
static RetCode tmr_InsertSysTmrQ (TmrFktCall *sysFktTmr, LifeTime expires)
 Insert the given TmrFktCall object into the system timer queue according to its expiration time. More...
 
static RetCode tmr_InsertTskTmrQ (PTskTCB tsk, LifeTime expires)
 Insert the given TskTCB object into the task timer queue according to its expiration time. More...
 
RetCode tmr_INIT (void)
 Calibrate the PIT Timer periodically. More...
 
RetCode tmr_setSysTimer (SysFktID fktID, TmrTime msToWait, uint8_t periodicity)
 Sets up a Timer to call a SysFkt corresponding to the given SysFktID as soon as the timer expires. More...
 
RetCode tmr_setTskTimer (PTskTCB tsk, TmrTime msToWait)
 Sets up a Timer for a task and queues it into the Timer queue according to its WaitTime relative to the current PIT value. More...
 
void tmr_SysTimerElapsed (void)
 Function to be called as soon as a system Timer expires. More...
 
void tmr_TskTimerElapsed (void)
 Function to be called as soon as a task Timer expires. More...
 
RetCode tmr_GiveUpOnTMR (PTskTCB const tsk)
 Forces the deletion of a task's Timer from the Timer queue and adjusts the queue accordingly. More...
 

Variables

SysFkt sys_SysFkt []
 System function array to hold various kinds of system functions. System functions can be referenced by their index in this array.
 
static MemPoolID memPoolID_TMR
 Memory Pool ID for the timer's memory pool. More...
 
static Timer tskTMR
 The start node for the task Timer queue. More...
 
static Timer sysTMR
 The start node for the system Timer queue. More...
 

Detailed Description