53 #ifndef __RKHFWK_DYNEVT_H__
54 #define __RKHFWK_DYNEVT_H__
103 #if RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED
104 #define RKH_ALLOC_EVT(et, e, sender_) \
105 (et *)rkh_fwk_ae((RKH_ES_T)sizeof(et),(RKH_SIG_T)(e), sender_)
107 #define RKH_ALLOC_EVT(et, e, sender_) \
147 #if RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED
148 #define RKH_FWK_GC(e, sender_) rkh_fwk_gc(e, sender_)
150 #define RKH_FWK_GC(e, sender_) (void)0
166 #if RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED
167 #define RKH_FWK_RSV(e) rkh_fwk_reserve(e)
169 #define RKH_FWK_RSV(e) (void)0
214 #define RKH_SET_STATIC_EVENT(ev_obj, ev_sig) \
215 MK_SET_EVT(ev_obj, ev_sig)
243 #define RKH_STATIC_EVENT(ev_obj, ev_sig) \
244 MK_EVT(ev_obj, ev_sig)
275 #define RKH_ROM_STATIC_EVENT(ev_obj, ev_sig) \
276 MK_ROM_EVT(ev_obj, ev_sig)
308 #define RKH_INIT_STATIC_EVT(ev_sig) \
309 MK_EVT_STRUCT(ev_sig)
void rkh_fwk_reserve(RKH_EVT_T *e)
Reserve the dynamic event to be recycled.
void rkh_dynEvt_init(void)
Initializes the dynamic event manager.
void rkh_fwk_gc(RKH_EVT_T *e, const void *const sender)
Recycle a dynamic event.
void rkh_fwk_registerEvtPool(void *sstart, rui32_t ssize, RKH_ES_T esize)
Registers a new event pool into the event pool list.
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.
Specifies the event pool interface.
RKH engine interface.This header file is directly included in RKH interface file, rkh....
Represents events without parameters.