83 uint32_t ratio = ahb / freq;
85#if defined(__ARM_ARCH_6M__)
#define STK_CALIB
SysTick Calibration Value Register(Read Only) (CALIB) Reads the calibration value and parameters for ...
#define STK_RVR
SysTick Reload Value Register (RVR).
#define STK_CSR
SysTick Control and Status Register (CSR).
#define STK_CVR
SysTick Current Value Register (CVR).
uint8_t systick_get_countflag(void)
SysTick Read the Counter Flag.
void systick_interrupt_enable(void)
Enable SysTick Interrupt.
void systick_set_clocksource(uint8_t clocksource)
Set the SysTick Clock Source.
void systick_clear(void)
SysTick Clear counter Value.
uint32_t systick_get_calib(void)
SysTick Get Calibration Value.
bool systick_set_frequency(uint32_t freq, uint32_t ahb)
SysTick Set clock and frequency of overflow.
void systick_set_reload(uint32_t value)
SysTick Set the Automatic Reload Value.
void systick_counter_disable(void)
Disable SysTick Counter.
void systick_counter_enable(void)
Enable SysTick Counter.
uint32_t systick_get_reload(void)
SysTick Read the Automatic Reload Value.
uint32_t systick_get_value(void)
Get the current SysTick counter value.
void systick_interrupt_disable(void)
Disable SysTick Interrupt.
#define STK_CALIB_TENMS
TENMS Calibration value for 10ms.
#define STK_CSR_COUNTFLAG
COUNTFLAG Indicates whether the counter has counted to 0 since the last read of this register: 0 = Ti...
#define STK_CSR_ENABLE
ENABLE: Counter enable.
#define STK_CSR_TICKINT
TICKINT: SysTick exception request enable.
#define STK_CSR_CLKSOURCE
CLKSOURCE: Clock source selection for 0, SysTick uses the IMPLEMENTATION DEFINED external reference c...
#define STK_RVR_RELOAD
RELOAD[23:0]: RELOAD value.
#define STK_CVR_CURRENT
CURRENT[23:0]: Current counter value.
#define STK_CSR_CLKSOURCE_AHB
#define STK_CSR_CLKSOURCE_AHB_DIV8