|
#define | __VSF_CLASS_INHERIT__ |
|
#define | VSF_SYNC_AUTO_RST 0x0000 |
|
#define | VSF_SYNC_MANUAL_RST 0x8000 |
|
#define | VSF_SYNC_HAS_OWNER 0x8000 |
|
#define | VSF_SYNC_MAX 0x7FFF |
|
#define | VSF_KERNEL_CFG_EDA_USER_BITLEN 5 |
|
#define | __vsf_eda_sem_init2(__psem, __init_cnt, __max_cnt) vsf_eda_sync_init((__psem), (__init_cnt), (__max_cnt) | VSF_SYNC_AUTO_RST) |
|
#define | __vsf_eda_sem_init1(__psem, __init_cnt) __vsf_eda_sem_init2((__psem), (__init_cnt), VSF_SYNC_MAX) |
|
#define | __vsf_eda_sem_init0(__psem) __vsf_eda_sem_init1((__psem), 0) |
|
#define | vsf_eda_sem_init(__psem, ...) __PLOOC_EVAL(__vsf_eda_sem_init, __VA_ARGS__)((__psem), ##__VA_ARGS__) |
|
#define | vsf_eda_sem_post(__psem) vsf_eda_sync_increase((__psem)) |
|
#define | __vsf_eda_sem_pend1(__psem, __timeout) vsf_eda_sync_decrease((__psem), (__timeout)) |
|
#define | __vsf_eda_sem_pend0(__psem) __vsf_eda_sem_pend1((__psem), -1) |
|
#define | vsf_eda_sem_pend(__psem, ...) __PLOOC_EVAL(__vsf_eda_sem_pend, __VA_ARGS__)((__psem), ##__VA_ARGS__) |
|
#define | vsf_eda_sem_post_isr(__psem) vsf_eda_sync_increase_isr((__psem)) |
|
#define | vsf_eda_mutex_init(__pmtx) |
|
#define | __vsf_eda_mutex_enter1(__pmtx, __timeout) vsf_eda_sync_decrease(&((__pmtx)->use_as__vsf_sync_t), (__timeout)) |
|
#define | __vsf_eda_mutex_enter0(__pmtx) __vsf_eda_mutex_enter1((__pmtx), -1) |
|
#define | vsf_eda_mutex_enter(__pmtx, ...) __PLOOC_EVAL(__vsf_eda_mutex_enter, __VA_ARGS__)((__pmtx), ##__VA_ARGS__) |
|
#define | vsf_eda_mutex_leave(__pmtx) vsf_eda_sync_increase(&((__pmtx)->use_as__vsf_sync_t)) |
|
#define | vsf_eda_mutex_leave_isr(__pmtx) vsf_eda_sync_increase_isr(&(__pmtx)->use_as__vsf_sync_t) |
|
#define | vsf_eda_crit_init(__pcrit) vsf_eda_mutex_init((__pcrit)) |
|
#define | __vsf_eda_crit_enter1(__pcrit, __timeout) vsf_eda_mutex_enter((__pcrit), (__timeout)) |
|
#define | __vsf_eda_crit_enter0(__pcrit) __vsf_eda_crit_enter1((__pcrit), -1) |
|
#define | vsf_eda_crit_enter(__pcrit, ...) __PLOOC_EVAL(__vsf_eda_crit_enter, __VA_ARGS__)((__pcrit), ##__VA_ARGS__) |
|
#define | vsf_eda_crit_leave(__pcrit) vsf_eda_mutex_leave((__pcrit)) |
|
#define | vsf_eda_trig_init(__pevt, __set, __auto_rst) |
|
#define | vsf_eda_trig_set0(__pevt) vsf_eda_sync_increase((__pevt)) |
|
#define | vsf_eda_trig_set1(__pevt, __manual) __vsf_eda_sync_increase_ex((__pevt), NULL, (__manual)) |
|
#define | vsf_eda_trig_set(__pevt, ...) __PLOOC_EVAL(vsf_eda_trig_set, __VA_ARGS__)((__pevt), ##__VA_ARGS__) |
|
#define | vsf_eda_trig_reset(__pevt) vsf_eda_sync_force_reset((__pevt)) |
|
#define | __vsf_eda_trig_wait1(__pevt, __timeout) vsf_eda_sync_decrease((__pevt), (__timeout)) |
|
#define | __vsf_eda_trig_wait0(__pevt) __vsf_eda_trig_wait1((__pevt), -1) |
|
#define | vsf_eda_trig_wait(__pevt, ...) __PLOOC_EVAL(__vsf_eda_trig_wait, __VA_ARGS__)((__pevt), ##__VA_ARGS__) |
|
#define | vsf_eda_trig_set_isr(__pevt) vsf_eda_sync_increase_isr((__pevt)) |
|
#define | __vsf_eda_crit_npb_init(__pcrit) vsf_eda_sync_init((__pcrit), 1, 1 | VSF_SYNC_AUTO_RST) |
|
#define | __vsf_eda_crit_npb_enter1(__pcrit, __timeout) vsf_eda_sync_decrease((__pcrit), (__timeout)) |
|
#define | __vsf_eda_crit_npb_enter0(__pcrit) __vsf_eda_crit_npb_enter1((__pcrit), -1) |
|
#define | __vsf_eda_crit_npb_enter(__pcrit, ...) __PLOOC_EVAL(__vsf_eda_crit_npb_enter, __VA_ARGS__)((__pcrit), ##__VA_ARGS__) |
|
#define | __vsf_eda_crit_npb_leave(__pcrit) vsf_eda_sync_increase((__pcrit)) |
|
#define | __vsf_eda_init2(__eda, __priority, __feature) __vsf_eda_init((__eda), (__priority), (__feature)) |
|
#define | __vsf_eda_init1(__eda, __priority) __vsf_eda_init2((__eda), (__priority), (vsf_eda_feature_t){.value = 0}) |
|
#define | __vsf_eda_init0(__eda) __vsf_eda_init1((__eda), vsf_prio_inherit) |
|
#define | vsf_eda_init(__eda, ...) __PLOOC_EVAL(__vsf_eda_init, __VA_ARGS__)((__eda), ##__VA_ARGS__) |
|
#define | vsf_teda_init(__teda, ...) vsf_eda_init(&(__teda)->use_as__vsf_eda_t, ##__VA_ARGS__) |
|
#define | vsf_eda_return(...) __vsf_eda_return((uintptr_t)(0, ##__VA_ARGS__)) |
|
#define | vsf_systimer_get_ms() vsf_systimer_tick_to_ms(vsf_systimer_get_tick()) |
|
#define | vsf_systimer_get_us() vsf_systimer_tick_to_us(vsf_systimer_get_tick()) |
|
#define | vsf_eda_call_eda(__evthandler, ...) __vsf_eda_call_eda((uintptr_t)__evthandler, NULL, (0, ##__VA_ARGS)) |
|
#define | vsf_eda_call_param_eda(__param_evthandler, __param, ...) |
|
#define | vsf_eda_get_local(...) __vsf_eda_get_local((vsf_eda_t *)(vsf_eda_get_cur(), ##__VA_ARGS__)) |
|
#define | __vsf_peda_local(__name) peda_local_##__name |
|
#define | vsf_peda_local(__name) __vsf_peda_local(__name) |
|
#define | __vsf_peda_arg(__name) peda_arg_##__name |
|
#define | vsf_peda_arg(__name) __vsf_peda_arg(__name) |
|
#define | __vsf_peda_func(__name) vsf_peda_func_##__name |
|
#define | vsf_peda_func(__name) __vsf_peda_func(__name) |
|
#define | __vsf_peda_param(__name) peda_cb_##__name |
|
#define | vsf_peda_param(__name) __vsf_peda_param(__name) |
|
#define | __declare_vsf_peda_ctx(__name) |
|
#define | declare_vsf_peda_ctx(__name) __declare_vsf_peda_ctx(__name) |
|
#define | dcl_vsf_peda_ctx(__name) declare_vsf_peda_ctx(__name) |
|
#define | __declare_vsf_peda(__name) |
|
#define | declare_vsf_peda(__name) __declare_vsf_peda(__name) |
|
#define | dcl_vsf_peda(__name) declare_vsf_peda(__name) |
|
#define | declare_vsf_peda_methods1(__decoration, __name) |
|
#define | declare_vsf_peda_methods2(__decoration, __name, __func1) |
|
#define | declare_vsf_peda_methods3(__decoration, __name, __func1, __func2) |
|
#define | declare_vsf_peda_methods4(__name, __func1, __func2, __func3) |
|
#define | declare_vsf_peda_methods5( __decoration, __name, __func1, __func2, __func3, __func4) |
|
#define | declare_vsf_peda_methods6( __decoration, __name, __func1, __func2, __func3, __func4, __func5) |
|
#define | declare_vsf_peda_methods7( __decoration, __name, __func1, __func2, __func3, __func4, __func5, __func6) |
|
#define | declare_vsf_peda_methods8( __decoration, __name, __func1, __func2, __func3, __func4, __func5, __func6, __func7) |
|
#define | declare_vsf_peda_methods(__decoration, ...) |
|
#define | dcl_vsf_peda_methods(__decoration, ...) declare_vsf_peda_methods(__decoration, __VA_ARGS__) |
|
#define | __def_vsf_peda_ctx4(__name, __param, __arg, __local) |
|
#define | __def_vsf_peda4(__name, __param, __arg, __local) |
|
#define | __def_vsf_peda_ctx3(__name, __param, __arg) |
|
#define | __def_vsf_peda3(__name, __param, __arg) |
|
#define | __def_vsf_peda_ctx2(__name, __param) |
|
#define | __def_vsf_peda_ctx1(__name) __def_vsf_peda_ctx2(__name, ) |
|
#define | __def_vsf_peda2(__name, __param) |
|
#define | __def_vsf_peda1(__name) |
|
#define | def_vsf_peda(...) __PLOOC_EVAL(__def_vsf_peda, __VA_ARGS__) (__VA_ARGS__) |
|
#define | end_def_vsf_peda(...) |
|
#define | def_vsf_peda_ctx(...) __PLOOC_EVAL(__def_vsf_peda_ctx, __VA_ARGS__)(__VA_ARGS__) |
|
#define | end_def_vsf_peda_ctx(...) |
|
#define | define_vsf_peda_ctx(__name, ...) def_vsf_peda_ctx(__name, __VA_ARGS__) |
|
#define | end_define_vsf_peda_ctx(...) |
|
#define | def_locals(...) ,##__VA_ARGS__ |
|
#define | end_def_locals(...) |
|
#define | define_locals(...) ,##__VA_ARGS__ |
|
#define | end_define_locals(...) |
|
#define | def_args(...) ,__VA_ARGS__ |
|
#define | end_def_args(...) |
|
#define | define_args(...) ,__VA_ARGS__ |
|
#define | end_define_args(...) |
|
#define | define_arguments(...) ,__VA_ARGS__ |
|
#define | end_define_arguments(...) |
|
#define | define_parameters(...) __VA_ARGS__ |
|
#define | end_define_parameters(...) |
|
#define | vsf_peda_start vsf_teda_start |
|
#define | __init_vsf_peda(__name, __param_eda, __pri, ...) |
|
#define | init_vsf_peda(__name, __param_eda, __pri, ...) __init_vsf_peda(__name, (__param_eda), (__pri), __VA_ARGS__) |
|
#define | __implement_vsf_peda2(__name, __func_name) |
|
#define | __implement_vsf_peda1(__name) |
|
#define | vsf_peda_begin() |
|
#define | vsf_peda_end() } |
|
#define | implement_vsf_peda(...) __PLOOC_EVAL(__implement_vsf_peda, __VA_ARGS__)(__VA_ARGS__) |
|
#define | imp_vsf_peda(...) implement_vsf_peda(__VA_ARGS__) |
|
#define | vsf_eda_call_peda(__name, __param) |
|
#define | vsf_local (*vsf_plocal) |
|
#define | vsf_this (*vsf_pthis) |
|
#define | vsf_eda_mutex_try_enter vsf_eda_mutex_enter |
|
#define | vsf_eda_crit_try_enter vsf_eda_crit_enter |
|
#define | VSF_KERNEL_TIMEOUT_TICK_T int_fast64_t |
|
#define | __VSF_BITMAP_EVT_DEFINED__ |
|
#define | VSF_BMPEVT_OR 0 |
|
#define | VSF_BMPEVT_AND 1 |
|
|
void | vsf_systimer_on_tick (void) |
|
vsf_systimer_tick_t | vsf_systimer_get_tick (void) |
|
vsf_systimer_tick_t | vsf_systimer_get_duration (vsf_systimer_tick_t from_time, vsf_systimer_tick_t to_time) |
|
vsf_systimer_tick_t | vsf_systimer_get_elapsed (vsf_systimer_tick_t from_time) |
|
vsf_err_t | __vsf_eda_init (vsf_eda_t *pthis, vsf_prio_t priotiry, vsf_eda_feature_t feature) |
|
vsf_err_t | vsf_eda_set_evthandler (vsf_eda_t *pthis, vsf_eda_evthandler_t evthandler) |
|
void | vsf_kernel_init (const vsf_kernel_cfg_t *cfg_ptr) |
|
vsf_err_t | __vsf_eda_post_evt_ex (vsf_eda_t *pthis, vsf_evt_t evt, bool force) |
|
bool | vsf_eda_polling_state_get (vsf_eda_t *pthis) |
|
void | vsf_eda_polling_state_set (vsf_eda_t *pthis, bool state) |
|
vsf_err_t | vsf_eda_go_to (uintptr_t evthandler) |
|
vsf_err_t | vsf_eda_start (vsf_eda_t *pthis, vsf_eda_cfg_t *cfg) |
|
vsf_eda_t * | vsf_eda_get_cur (void) |
|
vsf_evt_t | vsf_eda_get_cur_evt (void) |
|
void * | vsf_eda_get_cur_msg (void) |
|
bool | vsf_eda_is_stack_owner (vsf_eda_t *pthis) |
|
bool | __vsf_eda_return (uintptr_t return_value) |
|
uintptr_t | vsf_eda_get_return_value (void) |
|
void | __vsf_eda_yield (void) |
|
void | vsf_eda_cpu_usage_start (vsf_eda_t *pthis, vsf_cpu_usage_ctx_t *ctx) |
|
void | vsf_eda_cpu_usage_stop (vsf_eda_t *pthis) |
|
vsf_err_t | vsf_eda_fini (vsf_eda_t *pthis) |
|
void | __vsf_dispatch_evt (vsf_eda_t *pthis, vsf_evt_t evt) |
|
void | __vsf_eda_on_terminate (vsf_eda_t *pthis) |
|
vsf_prio_t | __vsf_eda_get_cur_priority (vsf_eda_t *pthis) |
|
vsf_err_t | __vsf_eda_set_priority (vsf_eda_t *pthis, vsf_prio_t prio) |
|
void | vsf_eda_set_user_value (uint8_t value) |
|
uint8_t | vsf_eda_get_user_value (void) |
|
vsf_err_t | __vsf_eda_call_eda_prepare (uintptr_t evthandler, uintptr_t param, size_t local_size) |
|
vsf_err_t | __vsf_eda_call_eda (uintptr_t evthandler, uintptr_t param, size_t local_size) |
|
vsf_err_t | __vsf_eda_go_to_ex (uintptr_t evthandler, uintptr_t param) |
|
vsf_err_t | __vsf_eda_call_eda_ex_prepare (uintptr_t func, uintptr_t param, __vsf_eda_frame_state_t state, bool is_sub_call) |
|
vsf_err_t | __vsf_eda_call_eda_ex (uintptr_t func, uintptr_t param, __vsf_eda_frame_state_t state, bool is_sub_call) |
|
uintptr_t | __vsf_eda_get_local (vsf_eda_t *pthis) |
|
vsf_err_t | vsf_eda_target_set (uintptr_t param) |
|
uintptr_t | vsf_eda_target_get (void) |
|
vsf_err_t | vsf_teda_start (vsf_teda_t *pthis, vsf_eda_cfg_t *cfg) |
|
vsf_err_t | vsf_teda_set_timer (vsf_systimer_tick_t tick) |
|
vsf_err_t | vsf_teda_set_timer_ex (vsf_teda_t *pthis, vsf_systimer_tick_t tick) |
|
vsf_err_t | vsf_teda_cancel_timer (void) |
|
vsf_err_t | __vsf_teda_cancel_timer (vsf_teda_t *pthis) |
|
void | vsf_callback_timer_init (vsf_callback_timer_t *timer) |
|
vsf_err_t | vsf_callback_timer_add (vsf_callback_timer_t *timer, vsf_systimer_tick_t tick) |
|
vsf_err_t | vsf_callback_timer_remove (vsf_callback_timer_t *timer) |
|
vsf_err_t | vsf_callback_timer_add_isr (vsf_callback_timer_t *timer, vsf_systimer_tick_t tick) |
|
vsf_err_t | vsf_callback_timer_remove_isr (vsf_callback_timer_t *timer) |
|
uintptr_t | vsf_irq_enter (void) |
|
void | vsf_irq_leave (uintptr_t ctx) |
|
vsf_err_t | vsf_eda_post_evt (vsf_eda_t *pthis, vsf_evt_t evt) |
|
vsf_err_t | vsf_eda_post_msg (vsf_eda_t *pthis, void *msg) |
|
vsf_err_t | vsf_eda_post_evt_msg (vsf_eda_t *pthis, vsf_evt_t evt, void *msg) |
|
vsf_err_t | vsf_eda_sync_init (vsf_sync_t *pthis, uint_fast16_t cur_value, uint_fast16_t max_value) |
|
vsf_err_t | vsf_eda_sync_increase_isr (vsf_sync_t *pthis) |
|
vsf_err_t | vsf_eda_sync_increase (vsf_sync_t *pthis) |
|
vsf_err_t | vsf_eda_sync_increase_ex (vsf_sync_t *pthis, vsf_eda_t *eda) |
|
vsf_err_t | __vsf_eda_sync_increase_ex (vsf_sync_t *pthis, vsf_eda_t *eda, bool manual) |
|
vsf_err_t | __vsf_eda_sync_decrease_ex (vsf_sync_t *pthis, vsf_timeout_tick_t timeout, vsf_eda_t *eda, bool manual) |
|
void | vsf_eda_sync_force_reset (vsf_sync_t *pthis) |
|
vsf_err_t | vsf_eda_sync_decrease (vsf_sync_t *pthis, vsf_timeout_tick_t timeout) |
|
vsf_err_t | vsf_eda_sync_decrease_ex (vsf_sync_t *pthis, vsf_timeout_tick_t timeout, vsf_eda_t *eda) |
|
void | vsf_eda_sync_cancel (vsf_sync_t *pthis) |
|
vsf_sync_reason_t | vsf_eda_sync_get_reason (vsf_sync_t *pthis, vsf_evt_t evt) |
|
vsf_err_t | vsf_eda_bmpevt_init (vsf_bmpevt_t *pthis, uint_fast8_t adapter_count) |
|
vsf_err_t | vsf_eda_bmpevt_set (vsf_bmpevt_t *pthis, uint_fast32_t mask) |
|
vsf_err_t | vsf_eda_bmpevt_reset (vsf_bmpevt_t *pthis, uint_fast32_t mask) |
|
vsf_err_t | vsf_eda_bmpevt_cancel (vsf_bmpevt_t *pthis, uint_fast32_t mask) |
|
vsf_err_t | vsf_eda_bmpevt_pend (vsf_bmpevt_t *pthis, vsf_bmpevt_pender_t *pender, vsf_timeout_tick_t timeout) |
|
vsf_sync_reason_t | vsf_eda_bmpevt_poll (vsf_bmpevt_t *pthis, vsf_bmpevt_pender_t *pender, vsf_evt_t evt) |
|
vsf_err_t | vsf_eda_queue_init (vsf_eda_queue_t *pthis, uint_fast16_t max) |
|
vsf_err_t | vsf_eda_queue_send (vsf_eda_queue_t *pthis, void *node, vsf_timeout_tick_t timeout) |
|
vsf_err_t | vsf_eda_queue_send_ex (vsf_eda_queue_t *pthis, void *node, vsf_timeout_tick_t timeout, vsf_eda_t *eda) |
|
vsf_sync_reason_t | vsf_eda_queue_send_get_reason (vsf_eda_queue_t *pthis, vsf_evt_t evt, void *node) |
|
vsf_err_t | vsf_eda_queue_recv (vsf_eda_queue_t *pthis, void **node, vsf_timeout_tick_t timeout) |
|
vsf_err_t | vsf_eda_queue_recv_ex (vsf_eda_queue_t *pthis, void **node, vsf_timeout_tick_t timeout, vsf_eda_t *eda) |
|
vsf_sync_reason_t | vsf_eda_queue_recv_get_reason (vsf_eda_queue_t *pthis, vsf_evt_t evt, void **node) |
|
uint_fast16_t | vsf_eda_queue_get_cnt (vsf_eda_queue_t *pthis) |
|
void | vsf_eda_queue_cancel (vsf_eda_queue_t *pthis) |
|
vsf_err_t | vsf_eda_queue_send_isr (vsf_eda_queue_t *pthis, void *node) |
|
vsf_err_t | vsf_eda_queue_recv_isr (vsf_eda_queue_t *pthis, void **node) |
|