VSF Documented
|
#include "kernel/vsf_kernel_cfg.h"
#include "../../vsf_eda.h"
#include "./vsf_simple_bmpevt.h"
#include "../../task/vsf_task.h"
Go to the source code of this file.
Macros | |
#define | static_task_instance(...) |
#define | features_used(...) __VA_ARGS__ |
#define | mem_sharable(...) union {__VA_ARGS__}; |
#define | mem_nonsharable(...) __VA_ARGS__ |
#define | vsf_yield() |
#define | vsf_delay(__tick) if (VSF_EVT_TIMER == __vsf_delay((uint_fast32_t)__tick)) |
#define | vsf_delay_ms(__ms) if (VSF_EVT_TIMER == __vsf_delay((uint_fast32_t)vsf_systimer_ms_to_tick(__ms))) |
#define | vsf_delay_us(__us) if (VSF_EVT_TIMER == __vsf_delay((uint_fast32_t)vsf_systimer_us_to_tick(__us))) |
#define | on_timeout() if (VSF_SYNC_TIMEOUT == vsf_eda_get_cur_evt()) |
#define | vsf_mutex_init(__mutex_addr) vsf_eda_mutex_init(__mutex_addr) |
#define | vsf_mutex_leave(__mutex_addr) vsf_eda_mutex_leave(__mutex_addr) |
#define | vsf_mutex_enter(__mutex_addr) |
#define | vsf_mutex_try_enter_timeout(__mutex_addr, __timeout) |
#define | vsf_mutex_try_enter_timeout_ms(__mutex_addr, __timeout) |
#define | vsf_mutex_try_enter_timeout_us(__mutex_addr, __timeout) |
#define | vsf_crit_init(__crit_addr) vsf_eda_crit_init(__crit_addr) |
#define | vsf_crit_leave(__crit_addr) vsf_eda_crit_leave(__crit_addr) |
#define | vsf_crit_enter(__crit_addr) |
#define | vsf_crit_try_enter_timeout(__crit_addr, __timeout) |
#define | vsf_crit_try_enter_timeout_ms(__crit_addr, __timeout) |
#define | vsf_crit_try_enter_timeout_us(__crit_addr, __timeout) |
#define | vsf_sem_init(__psem, __cnt) vsf_eda_sync_init((__psem), (__cnt), VSF_SYNC_MAX | VSF_SYNC_AUTO_RST) |
#define | vsf_sem_post(__psem) vsf_eda_sem_post((__psem)) |
#define | vsf_sem_pend(__psem) |
#define | vsf_sem_pend_timeout(__psem, __timeout) |
#define | vsf_sem_pend_timeout_ms(__psem, __timeout) |
#define | vsf_sem_pend_timeout_us(__psem, __timeout) |
#define | vsf_trig_init(__ptrig, __set, __auto_rst) vsf_eda_trig_init(__ptrig, __set, __auto_rst) |
#define | vsf_trig_set(__ptrig) vsf_eda_trig_set((__ptrig)) |
#define | vsf_trig_reset(__ptrig) vsf_eda_trig_reset((__ptrig)) |
#define | vsf_trig_wait(__ptrig) |
#define | vsf_trig_wait_timeout(__ptrig, __timeout) |
#define | vsf_trig_wait_timeout_ms(__ptrig, __timeout) |
#define | vsf_trig_wait_timeout_us(__ptrig, __timeout) |
#define | vsf_call_eda(__entry, __param_addr) |
#define | vsf_call_fsm(__entry, __param_addr, ...) |
#define | vsf_call_peda4(__peda_name, __entry, __private_local_size, __peda_param_addr, __buff) |
#define | vsf_call_peda3(__peda_name, __entry, __private_local_size, __peda_param_addr) |
#define | vsf_call_peda2(__peda_name, __peda_param_addr, __buff) |
#define | vsf_call_peda1(__peda_name, __peda_param_addr) |
#define | vsf_call_peda(__peda_name, ...) __PLOOC_EVAL(vsf_call_peda, __VA_ARGS__) (__peda_name, __VA_ARGS__) |
Functions | |
vsf_evt_t | __vsf_delay (uint_fast32_t ms) |
vsf_sync_reason_t | __vsf_sem_pend (vsf_sem_t *sem_ptr, int_fast32_t time_out) |
vsf_sync_reason_t | __vsf_mutex_enter (vsf_mutex_t *mtx_ptr, int_fast32_t time_out) |
vsf_evt_t | __vsf_yield (void) |
vsf_err_t | __vsf_call_eda (uintptr_t evthandler, uintptr_t param, size_t local_size, size_t local_buff_size, uintptr_t local_buff) |
fsm_rt_t | __vsf_call_task (vsf_task_entry_t entry, uintptr_t param, size_t local_size) |
#define static_task_instance | ( | ... | ) |
#define features_used | ( | ... | ) | __VA_ARGS__ |
#define mem_sharable | ( | ... | ) | union {__VA_ARGS__}; |
#define mem_nonsharable | ( | ... | ) | __VA_ARGS__ |
#define vsf_yield | ( | ) |
#define vsf_delay | ( | __tick | ) | if (VSF_EVT_TIMER == __vsf_delay((uint_fast32_t)__tick)) |
#define vsf_delay_ms | ( | __ms | ) | if (VSF_EVT_TIMER == __vsf_delay((uint_fast32_t)vsf_systimer_ms_to_tick(__ms))) |
#define vsf_delay_us | ( | __us | ) | if (VSF_EVT_TIMER == __vsf_delay((uint_fast32_t)vsf_systimer_us_to_tick(__us))) |
#define on_timeout | ( | ) | if (VSF_SYNC_TIMEOUT == vsf_eda_get_cur_evt()) |
#define vsf_mutex_init | ( | __mutex_addr | ) | vsf_eda_mutex_init(__mutex_addr) |
#define vsf_mutex_leave | ( | __mutex_addr | ) | vsf_eda_mutex_leave(__mutex_addr) |
#define vsf_mutex_enter | ( | __mutex_addr | ) |
#define vsf_mutex_try_enter_timeout | ( | __mutex_addr, | |
__timeout | |||
) |
#define vsf_mutex_try_enter_timeout_ms | ( | __mutex_addr, | |
__timeout | |||
) |
#define vsf_mutex_try_enter_timeout_us | ( | __mutex_addr, | |
__timeout | |||
) |
#define vsf_crit_init | ( | __crit_addr | ) | vsf_eda_crit_init(__crit_addr) |
#define vsf_crit_leave | ( | __crit_addr | ) | vsf_eda_crit_leave(__crit_addr) |
#define vsf_crit_enter | ( | __crit_addr | ) |
#define vsf_crit_try_enter_timeout | ( | __crit_addr, | |
__timeout | |||
) |
#define vsf_crit_try_enter_timeout_ms | ( | __crit_addr, | |
__timeout | |||
) |
#define vsf_crit_try_enter_timeout_us | ( | __crit_addr, | |
__timeout | |||
) |
#define vsf_sem_init | ( | __psem, | |
__cnt | |||
) | vsf_eda_sync_init((__psem), (__cnt), VSF_SYNC_MAX | VSF_SYNC_AUTO_RST) |
#define vsf_sem_post | ( | __psem | ) | vsf_eda_sem_post((__psem)) |
#define vsf_sem_pend | ( | __psem | ) |
#define vsf_sem_pend_timeout | ( | __psem, | |
__timeout | |||
) |
#define vsf_sem_pend_timeout_ms | ( | __psem, | |
__timeout | |||
) |
#define vsf_sem_pend_timeout_us | ( | __psem, | |
__timeout | |||
) |
#define vsf_trig_init | ( | __ptrig, | |
__set, | |||
__auto_rst | |||
) | vsf_eda_trig_init(__ptrig, __set, __auto_rst) |
#define vsf_trig_set | ( | __ptrig | ) | vsf_eda_trig_set((__ptrig)) |
#define vsf_trig_reset | ( | __ptrig | ) | vsf_eda_trig_reset((__ptrig)) |
#define vsf_trig_wait | ( | __ptrig | ) |
#define vsf_trig_wait_timeout | ( | __ptrig, | |
__timeout | |||
) |
#define vsf_trig_wait_timeout_ms | ( | __ptrig, | |
__timeout | |||
) |
#define vsf_trig_wait_timeout_us | ( | __ptrig, | |
__timeout | |||
) |
#define vsf_call_eda | ( | __entry, | |
__param_addr | |||
) |
#define vsf_call_fsm | ( | __entry, | |
__param_addr, | |||
... | |||
) |
#define vsf_call_peda4 | ( | __peda_name, | |
__entry, | |||
__private_local_size, | |||
__peda_param_addr, | |||
__buff | |||
) |
#define vsf_call_peda3 | ( | __peda_name, | |
__entry, | |||
__private_local_size, | |||
__peda_param_addr | |||
) |
#define vsf_call_peda2 | ( | __peda_name, | |
__peda_param_addr, | |||
__buff | |||
) |
#define vsf_call_peda1 | ( | __peda_name, | |
__peda_param_addr | |||
) |
#define vsf_call_peda | ( | __peda_name, | |
... | |||
) | __PLOOC_EVAL(vsf_call_peda, __VA_ARGS__) (__peda_name, __VA_ARGS__) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |