Code Example
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13);
}
HAL_TIM_Base_Start_IT(&htim2);
How it works
This STM32 example demonstrates basic peripheral configuration and HAL usage.