hal_systick.c 197 B

123456789101112
  1. #include "hal_systick.h"
  2. void hal_systick_init(void)
  3. {
  4. if (SysTick_Config(SystemCoreClock / 1000))
  5. {
  6. while (1)
  7. {
  8. }
  9. }
  10. NVIC_SetPriority(SysTick_IRQn, 0x00);
  11. }