SYSTICK
-
Systick callback functionAutonomous Lawn Mower/Raspberry pi & STM32 2025. 2. 1. 23:46
ioc 파일 설정 설정 후 SysTick_Handler에 HAL_SYSTICK_IRQHandler();를 추가해주어야 함. SysTick_Handler가 있는 위치는 Core > Src > stm32f4xx_it.c 에 있다. 예제 코드 // variables for system schedulervolatile uint32_t ms_counter = 0;volatile uint32_t tick_1ms = 0;volatile uint32_t tick_10ms = 0;volatile uint32_t tick_100ms = 0;volatile uint32_t tick_1s = 0; void HAL_SYSTICK_Callback(void){ // return uwTick in the __weak ui..