diff --git a/include/sta/devices/stm32/mcu/STM32F407xx.hpp b/include/sta/devices/stm32/mcu/STM32F407xx.hpp index f390ad0..3a3b61d 100644 --- a/include/sta/devices/stm32/mcu/STM32F407xx.hpp +++ b/include/sta/devices/stm32/mcu/STM32F407xx.hpp @@ -64,6 +64,11 @@ #define STA_STM32_USART_3_PCLK_IDX 1 /**< USART3 to PCLK index */ #define STA_STM32_USART_6_PCLK_IDX 2 /**< USART6 to PCLK index */ +// prescaler from APBx to APBx timer clocks +#define STA_STM32_TIM_PCLK_1_PRESCALER 2 /**< PCLK1 has prescaler of 2 */ +#define STA_STM32_TIM_PCLK_2_PRESCALER 2 /**< PCLK2 has prescaler of 1 */ + + // HAL handle mappings // diff --git a/src/debug/profile.cpp b/src/debug/profile.cpp index 6e0c8de..4e7eec6 100644 --- a/src/debug/profile.cpp +++ b/src/debug/profile.cpp @@ -7,7 +7,7 @@ #include -#ifdef STA_DEBUGGING_ENABLED +#ifdef STA_PROFILING_ENABLED #include @@ -26,4 +26,4 @@ namespace sta } } // namespace sta -#endif // STA_DEBUGGING_ENABLED +#endif // STA_PROFILING_ENABLED