The correct approach would be to add a guard for the setting:
Code: Select all
#if !defined(STM32_TIMPRE) || defined(__DOXYGEN__)
#define STM32_TIMPRE STM32_TIMPRE_PCLK
#endif
All other settings are done this way.
I am adding it.
Giovanni
Code: Select all
#if !defined(STM32_TIMPRE) || defined(__DOXYGEN__)
#define STM32_TIMPRE STM32_TIMPRE_PCLK
#endif
Code: Select all
/*
* Configuration-related checks.
*/
#if !defined(STM32F4xx_MCUCONF)
#error "Using a wrong mcuconf.h file, STM32F4xx_MCUCONF not defined"
#endif
#if defined(STM32F413xx) && !defined(STM32F413_MCUCONF)
#error "Using a wrong mcuconf.h file, STM32F413_MCUCONF not defined"
#endif
Return to “Small Change Requests”
Users browsing this forum: No registered users and 36 guests