43 #define SYST_CSR SysTick->CTRL // SysTick Control & Status Register 44 #define SYST_RVR SysTick->LOAD // SysTick Reload Value Register 45 #define SYST_CVR SysTick->VAL // SysTick Current Value Register 74 elapsed_ticks = start_ticks - (
SYST_CVR & 0x00FFFFFF);
75 if (elapsed_ticks < 0) elapsed_ticks +=
SYST_RVR;
87 for (i = 0; i < delay_ms; i++)
94 }
while (ielapsed_ticks < iSystemCoreClock / 1000);
void ARM_systick_enable(void)
int32 ARM_systick_elapsed_ticks(int32 start_ticks)
The sensor_fusion.h file implements the top level programming interface.
Provides function prototypes for driver level interfaces.
void ARM_systick_delay_ms(uint32 iSystemCoreClock, uint32 delay_ms)
void ARM_systick_start_ticks(int32 *pstart)