#include "hal_systick.h" void hal_systick_init(void) { if (SysTick_Config(SystemCoreClock / 1000)) { while (1) { } } NVIC_SetPriority(SysTick_IRQn, 0x00); }