33 static inline void systick_enable() { SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; }
39 static inline void systick_disable() { SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk; }
void(* voidFuncPtr)(void)
void SysTick_Handler(void)
void systick_init(uint32_t reload_val)
Initialize and enable SysTick.
static uint64_t systick_uptime(void)
Returns the system uptime, in milliseconds.
void systick_attach_callback(Handler callback)
Attach a callback to be called from the SysTick exception handler.
static uint32_t systick_get_count(void)
Returns the current value of the SysTick counter.
voidFuncPtr boardEmergencyHandler
void systick_detach_callback(Handler callback)
void __error(uint32_t num, uint32_t pc, uint32_t lr, uint32_t flag)
void uint32_t uint32_t lr
void emerg_delay(uint32_t)
volatile uint64_t systick_uptime_millis
void uint32_t uint32_t uint32_t flag
static uint32_t systick_check_underflow(void)
Check for underflow.
uint32_t systick_micros(void)
static void systick_enable()
static void systick_disable()
void __attribute__((noreturn)) __error(uint32_t pc