R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_timer.h
Go to the documentation of this file.
1 
12 #ifndef HEADERS_R_RTOS_TIMER_H_
13 #define HEADERS_R_RTOS_TIMER_H_
14 
15 #include "R_RTOS_inc.h"
16 
20 #define TMR_INVALID_TIME (LifeTime)0xFFFFFFFFu
21 
30 #define TMR_PIT_DELAY (uint32_t)0x3u // 3ms delay
31 
32 
40 RetCode tmr_INIT( void );
41 
55 RetCode tmr_setTskTimer( PTskTCB tsk, TmrTime msToWait );
56 
69 RetCode tmr_setSysTimer( SysFktID fktID, TmrTime msToWait, uint8_t periodicity );
70 
77 void tmr_SysTimerElapsed( void );
78 
89 void tmr_TskTimerElapsed( void );
90 
103 RetCode tmr_GiveUpOnTMR( PTskTCB const tsk );
104 
109 #endif /* HEADERS_R_RTOS_TIMER_H_ */
RetCode tmr_INIT(void)
Calibrate the PIT Timer periodically.
Definition: R_RTOS_timer.c:155
Defines, Typedefs and Macros for the whole system.
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...
Definition: R_RTOS_timer.c:178
void tmr_TskTimerElapsed(void)
Function to be called as soon as a task Timer expires.
Definition: R_RTOS_timer.c:333
void tmr_SysTimerElapsed(void)
Function to be called as soon as a system Timer expires.
Definition: R_RTOS_timer.c:276
uint16_t TmrTime
Used to describe the time of a software timer.
Definition: R_RTOS_inc.h:516
RetCode tmr_GiveUpOnTMR(PTskTCB const tsk)
Forces the deletion of a task's Timer from the Timer queue and adjusts the queue accordingly.
Definition: R_RTOS_timer.c:397
Task Control Block.
Definition: R_RTOS_inc.h:1322
RetCode tmr_setTskTimer(PTskTCB const tsk, TmrTime msToWait)
Sets up a Timer for a task and queues it into the Timer queue according to its WaitTime relative to t...
Definition: R_RTOS_timer.c:213
uint8_t SysFktID
System function ID.
Definition: R_RTOS_inc.h:361
uint8_t RetCode
Return codes for functions.
Definition: R_RTOS_inc.h:1424