70 #if defined(RKH_USE_TRC_SENDER)
89 #define RKH_TIM_TICK(_sender) rkh_tmr_tick(_sender)
91 #define RKH_TIM_TICK(dummy_) rkh_tmr_tick()
142 #if RKH_CFG_TMR_HOOK_EN == RKH_ENABLED
143 #define RKH_TMR_INIT(t_, e_, th_) \
144 rkh_tmr_init_((t_), (e_), (th_))
146 #define RKH_TMR_INIT(t_, e_, th_) \
147 rkh_tmr_init_((t_), (e_))
187 #define RKH_TMR_ONESHOT(t, sma, itick) \
188 rkh_tmr_start(t, sma, itick, 0)
234 #define RKH_TMR_PERIODIC(t, sma, itick, per) \
235 rkh_tmr_start((t), (sma), (itick), (per))
255 #if RKH_CFG_TMR_SIZEOF_NTIMER == 8
257 #elif RKH_CFG_TMR_SIZEOF_NTIMER == 16
259 #elif RKH_CFG_TMR_SIZEOF_NTIMER == 32
357 #if RKH_CFG_TMR_HOOK_EN == RKH_ENABLED
365 #if RKH_CFG_TMR_GET_INFO_EN == RKH_ENABLED
416 #if RKH_CFG_TMR_HOOK_EN == RKH_ENABLED
518 #if defined(RKH_USE_TRC_SENDER)
void rkh_tmr_init(void)
Initializes the timer module.
void rkh_tmr_start(RKH_TMR_T *t, const struct RKH_SMA_T *sma, RKH_TNT_T itick, RKH_TNT_T per)
Start a timer.
void rkh_tmr_get_info(RKH_TMR_T *t, RKH_TINFO_T *info)
Retrieves performance information for a particular software timer.
void rkh_tmr_clear_info(RKH_TMR_T *t)
Clear performance information for a particular software timer.
rbool_t rkh_tmr_stop(RKH_TMR_T *t)
Stops a running timer.
RKH engine interface.This header file is directly included in RKH interface file, rkh....
void rkh_tmr_tick(const void *const sender)
Keep tracks and updates the started timers.
void(* RKH_THK_T)(void *t)
The prototype of callback function (hook) to call when the timer expires.
rui8_t RKH_TNT_T
This data type defines the dynamic range of the time delays measured in clock ticks (maximum number o...
void rkh_tmr_init_(RKH_TMR_T *t, const RKH_EVT_T *e, RKH_THK_T thk)
Initializes the previously allocated timer structure RKH_TMR_T.
Represents events without parameters.
Describes the SMA (active object in UML).
Defines the data structure into which the performance information for software timers is stored.
Defines the data structure used to maintain information that allows the timer-handling facility to up...
RKH_TNT_T period
Number of ticks for all timer expirations after the first (expiration period). A zero for this parame...
const struct RKH_SMA_T * sma
State machine application (a.k.a Active Object) that receives the timer event.
RKH_TNT_T ntick
Tick down-counter.
It defines a time event that occurs at a specific duration.