52 #ifndef __RKHFWK_HOOK_H__
53 #define __RKHFWK_HOOK_H__
65 #if (RKH_CFG_HOOK_DISPATCH_EN == RKH_ENABLED)
66 #define RKH_HOOK_DISPATCH(sma, e) \
67 rkh_hook_dispatch((sma), (RKH_EVT_T *)(e))
69 #define RKH_HOOK_DISPATCH(sma, e) (void)0
72 #if (RKH_CFG_HOOK_TIMEOUT_EN == RKH_ENABLED)
73 #define RKH_HOOK_TIMEOUT(t) rkh_hook_timeout((t))
75 #define RKH_HOOK_TIMEOUT(t) (void)0
78 #if (RKH_CFG_HOOK_SIGNAL_EN == RKH_ENABLED)
79 #define RKH_HOOK_SIGNAL(e) rkh_hook_signal((RKH_EVT_T *)(e))
81 #define RKH_HOOK_SIGNAL(e) (void)0
84 #if (RKH_CFG_HOOK_START_EN == RKH_ENABLED)
85 #define RKH_HOOK_START() rkh_hook_start()
87 #define RKH_HOOK_START() (void)0
90 #if (RKH_CFG_HOOK_EXIT_EN == RKH_ENABLED)
91 #define RKH_HOOK_EXIT() rkh_hook_exit()
93 #define RKH_HOOK_EXIT() (void)0
96 #if (RKH_CFG_HOOK_TIMETICK_EN == RKH_ENABLED)
97 #define RKH_HOOK_TIMETICK() rkh_hook_timetick()
99 #define RKH_HOOK_TIMETICK() (void)0
102 #if (RKH_CFG_HOOK_PUT_TRCEVT_EN == RKH_ENABLED)
103 #define RKH_HOOK_PUT_TRCEVT() rkh_hook_putTrcEvt()
105 #define RKH_HOOK_PUT_TRCEVT() (void)0
void rkh_hook_putTrcEvt(void)
This function is called from rkh_trc_end() function, at the end of that, to allow to the application ...
void rkh_hook_start(void)
This hook function is called just before the RKH takes over control of the application.
void rkh_hook_timeout(const void *t)
If a timer expires the rkh_hook_timeout() function is called just before the assigned event is direct...
void rkh_hook_exit(void)
This hook function is called just before the RKH returns to the underlying OS/RTOS....
void rkh_hook_timetick(void)
This function is called by rkh_tmr_tick(), which is assumed to be called from an ISR....
void rkh_hook_signal(RKH_EVT_T *e)
When the producer of an event directly posts the event to the event queue of the consumer SMA the rkh...
void rkh_hook_idle(void)
An idle hook function will only get executed (with interrupts LOCKED) when there are no SMAs of highe...
void rkh_hook_dispatch(RKH_SMA_T *me, RKH_EVT_T *e)
When dispatching an event to a SMA the dispatch hook function will be executed.
Specifies the interface of the acive object (SMA state machine applications) manager.
Defines the data types that uses RKH.
Represents events without parameters.
Describes the SMA (active object in UML).