Implements a common api interface for accessing timer drivers of all architectures.
Macros | |
#define | DEF_1MHZ (1000000) |
#define | TIMER_PERIOD UINT16_MAX |
Functions | |
void | common_tc_compare_stop (void) |
To disable timer compare interrupt. More... | |
void | common_tc_delay (uint16_t value) |
To create a non blocking delay. More... | |
void | common_tc_init (void) |
To initialize common hw timer. More... | |
void | common_tc_overflow_stop (void) |
To disable timer overflow interrupt. More... | |
uint16_t | common_tc_read_count (void) |
To read current count of the timer after issuing common tc delay. More... | |
void | common_tc_stop (void) |
To disable timer. More... | |
void | hw_expiry_cb (void) |
void | hw_overflow_cb (void) |
void | set_common_tc_expiry_callback (tmr_callback_t callback) |
to set common hw timer compare callback More... | |
void | set_common_tc_overflow_callback (tmr_callback_t callback) |
to set common hw timer overflow callback More... | |
void | tmr_cca_callback (void) |
timer compare interrupt callback More... | |
void | tmr_ovf_callback (void) |
timer overflow interrupt callback More... | |
#define DEF_1MHZ (1000000) |
Referenced by tmr_init().
#define TIMER_PERIOD UINT16_MAX |
void common_tc_compare_stop | ( | void | ) |
To disable timer compare interrupt.
Referenced by load_hw_timer(), and sw_timer_stop().
void common_tc_delay | ( | uint16_t | value | ) |
To create a non blocking delay.
value | delay in us |
Referenced by load_hw_timer(), and prog_ocr().
void common_tc_init | ( | void | ) |
To initialize common hw timer.
Referenced by sw_timer_init().
void common_tc_overflow_stop | ( | void | ) |
To disable timer overflow interrupt.
uint16_t common_tc_read_count | ( | void | ) |
To read current count of the timer after issuing common tc delay.
Referenced by gettime().
void common_tc_stop | ( | void | ) |
To disable timer.
void hw_expiry_cb | ( | void | ) |
References running_timers, sw_timer_service(), sys_sleep, and timer_trigger.
Referenced by sw_timer_init().
void hw_overflow_cb | ( | void | ) |
References prog_ocr(), sys_sleep, and sys_time.
Referenced by sw_timer_init().
void set_common_tc_expiry_callback | ( | tmr_callback_t | callback | ) |
to set common hw timer compare callback
Referenced by sw_timer_init().
void set_common_tc_overflow_callback | ( | tmr_callback_t | callback | ) |
to set common hw timer overflow callback
Referenced by sw_timer_init().
void tmr_cca_callback | ( | void | ) |
timer compare interrupt callback
Referenced by tc_callback().
void tmr_ovf_callback | ( | void | ) |
timer overflow interrupt callback
Referenced by tc_callback().