19 #ifndef CODEBASE_PERIPHERAL_MODULES_DEVICE_TICK_H_ 20 #define CODEBASE_PERIPHERAL_MODULES_DEVICE_TICK_H_ 40 #if SYS_CFG_PRESENT == 1 41 #include "sys_config.h" 43 #ifndef MS_TIMER_USED_DEVICE_TICKS 44 #define MS_TIMER_USED_DEVICE_TICKS 0 48 #define DEVICE_TICK_MSTIMER_DIV_FACTOR (1) 65 uint32_t fast_mode_ticks;
device_tick_mode mode
The number of LFCLK ticks for the slow mode.
uint32_t slow_mode_ticks
The number of LFCLK ticks for the fast mode.
device_tick_mode
The two different modes at which the device ticks, fast & slow.
Stucture for passing the configuration for initializing the Device Tick module.
void device_tick_init(device_tick_cfg *cfg)
Initializes and starts the Device tick module. Provides a next interval event immediately....
void device_tick_process(void)
The function to be called whenever the SoC wakes up to see if more than half the time of the current ...
void device_tick_switch_mode(device_tick_mode mode)
Switches from the fast to slow mode or vice versa.