From ad2be63cbe5a8bc57b0f0c58c2cfd69963314ce9 Mon Sep 17 00:00:00 2001 From: dario Date: Tue, 28 May 2024 12:31:33 +0200 Subject: [PATCH] Updated config for F407 and fixed profiler error --- include/sta/devices/stm32/mcu/STM32F407xx.hpp | 5 +++++ src/debug/profile.cpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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