18#ifndef __VSF_ARCH_INTERFACE_H__
19#define __VSF_ARCH_INTERFACE_H__
54#if VSF_SYSTIMER_CFG_IMPL_MODE != VSF_SYSTIMER_IMPL_NONE
58extern uint_fast32_t vsf_arch_req___systimer_freq___from_usr(
void);
59# if VSF_SYSTIMER_CFG_IMPL_MODE == VSF_SYSTIMER_IMPL_TICK_MODE
60extern uint_fast32_t vsf_arch_req___systimer_resolution___from_usr(
void);
66# if (VSF_SYSTIMER_CFG_IMPL_MODE == VSF_SYSTIMER_IMPL_WITH_NORMAL_TIMER) \
67 || (VSF_SYSTIMER_CFG_IMPL_MODE == VSF_SYSTIMER_IMPL_TICK_MODE)
117# elif VSF_SYSTIMER_CFG_IMPL_MODE == VSF_SYSTIMER_IMPL_WITH_COMP_TIMER
146extern void vsf_systimer_match_evthandler(
void);
151# elif VSF_SYSTIMER_CFG_IMPL_MODE == VSF_SYSTIMER_IMPL_REQUEST_RESPONSE
vsf_err_t
Definition __type.h:42
bool vsf_arch_low_level_init(void)
Definition arm9_generic.c:65
vsf_err_t vsf_systimer_low_level_init(void)
initialise systimer (current value set to 0) without enable it
Definition driver.c:59
vsf_systimer_tick_t vsf_systimer_low_level_get_current(void)
get current value of timer
Definition driver.c:74
void vsf_systimer_low_level_set_match(vsf_systimer_tick_t match)
set match value, will be triggered when current >= match, vsf_systimer_match_evthandler will be calle...
Definition driver.c:82
void vsf_systimer_set_reload_value(vsf_systimer_tick_t tick_cnt)
Definition cortex_a_generic.c:92
void vsf_systimer_clear_int_pending_bit(void)
Definition cortex_a_generic.c:55
void vsf_systimer_low_level_int_disable(void)
Definition cortex_a_generic.c:82
void vsf_systimer_low_level_int_enable(void)
Definition cortex_a_generic.c:87
vsf_systimer_tick_t vsf_systimer_get_tick_elapsed(void)
Definition cortex_a_generic.c:50
bool vsf_systimer_low_level_disable(void)
disable systimer and return over-flow flag status !
Definition cortex_a_generic.c:70
void vsf_systimer_reset_counter_value(void)
Definition cortex_a_generic.c:60
void vsf_systimer_low_level_enable(void)
only enable systimer without clearing any flags
Definition cortex_a_generic.c:77
vsf_arch_prio_t
Definition cortex_a_generic.h:88
uint64_t vsf_systimer_tick_t
Definition cortex_a_generic.h:73
void vsf_systimer_prio_set(vsf_arch_prio_t priority)
Definition cortex_m_generic.c:185
vsf_systimer_tick_t vsf_systimer_get(void)
Definition linux_generic.c:402
void vsf_systimer_set_idle(void)
Definition linux_generic.c:398
vsf_systimer_tick_t vsf_systimer_tick_to_us(vsf_systimer_tick_t tick)
Definition linux_generic.c:445
vsf_err_t vsf_systimer_init(void)
initialise SysTick to generate a system timer !
Definition linux_generic.c:365
bool vsf_systimer_is_due(vsf_systimer_tick_t due)
Definition linux_generic.c:430
vsf_systimer_tick_t vsf_systimer_ms_to_tick(uint_fast32_t time_ms)
Definition linux_generic.c:440
vsf_systimer_tick_t vsf_systimer_us_to_tick(uint_fast32_t time_us)
Definition linux_generic.c:435
vsf_systimer_tick_t vsf_systimer_tick_to_ms(vsf_systimer_tick_t tick)
Definition linux_generic.c:450
vsf_err_t vsf_systimer_start(void)
Definition linux_generic.c:390
bool vsf_systimer_set(vsf_systimer_tick_t due)
Definition linux_generic.c:409
vsf_systimer_ovf_evt_handler()
unsigned int uint_fast32_t
Definition stdint.h:27
unsigned long long uintmax_t
Definition stdint.h:32