51 #ifndef __RKHFWK_DYNEVT_H__
52 #define __RKHFWK_DYNEVT_H__
101 #if RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED
102 #define RKH_ALLOC_EVT(et, e, sender_) \
103 (et *)rkh_fwk_ae((RKH_ES_T)sizeof(et),(RKH_SIG_T)(e), sender_)
105 #define RKH_ALLOC_EVT(et, e, sender_) \
145 #if RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED
146 #define RKH_FWK_GC(e, sender_) rkh_fwk_gc(e, sender_)
148 #define RKH_FWK_GC(e, sender_) (void)0
164 #if RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED
165 #define RKH_FWK_RSV(e) rkh_fwk_reserve(e)
167 #define RKH_FWK_RSV(e) (void)0
212 #define RKH_SET_STATIC_EVENT(ev_obj, ev_sig) \
213 MK_SET_EVT(ev_obj, ev_sig)
241 #define RKH_STATIC_EVENT(ev_obj, ev_sig) \
242 MK_EVT(ev_obj, ev_sig)
273 #define RKH_ROM_STATIC_EVENT(ev_obj, ev_sig) \
274 MK_ROM_EVT(ev_obj, ev_sig)
306 #define RKH_INIT_STATIC_EVT(ev_sig) \
307 MK_EVT_STRUCT(ev_sig)
Specifies the event pool interface.
Represents events without parameters.
RKH engine interface.This header file is directly included in RKH interface file, rkh...
void rkh_dynEvt_init(void)
Initializes the dynamic event manager.
RKH_EVT_T * rkh_fwk_ae(RKH_ES_T esize, RKH_SIG_T e, const void *const sender)
Allocates an event from the previously created event pool.
void rkh_fwk_registerEvtPool(void *sstart, rui32_t ssize, RKH_ES_T esize)
Registers a new event pool into the event pool list.
void rkh_fwk_reserve(RKH_EVT_T *e)
Reserve the dynamic event to be recycled.
void rkh_fwk_gc(RKH_EVT_T *e, const void *const sender)
Recycle a dynamic event.