News

Contribute to Sisoog/STM32_HAL_Tutorial development by creating an account on GitHub.
Use constants defined in dt-bindings/ timer/stm32-timer.h. STM32_TIM_COUNTERMODE_UP: used as up counter. STM32_TIM_COUNTERMODE_DOWN: used as downcounter. STM32_TIM_COUNTERMODE_CENTER_DOWN: c ounts up ...
Fortunately, most STM32 MCUs come with a selection of additional timer peripherals that can also be used for adding delay functions, depending on one’s needs.