Change module enable logic

This commit is contained in:
Henrik Stickann
2023-01-20 01:52:18 +01:00
parent 7f2f4a4df9
commit dd2983821e
12 changed files with 70 additions and 71 deletions

View File

@@ -12,14 +12,6 @@
*/
#ifdef DOXYGEN
/**
* @def STA_STM32_DELAY_ENABLE
* @brief Enable module.
*
* @ingroup stm32BuildConfig
*/
# define STA_STM32_DELAY_ENABLE
/**
* @def STA_STM32_DELAY_US_TIM
* @brief 1 MHz TIM instance used by sta::delayUs.
@@ -33,8 +25,9 @@
#endif // DOXYGEN
// Only enable module on STM32 platform
#include <sta/config.hpp>
#ifdef STA_STM32_DELAY_ENABLE
#ifdef STA_PLATFORM_STM32
#include <cstdint>
@@ -63,6 +56,6 @@ namespace sta
} // namespace sta
#endif // STA_STM32_DELAY_ENABLE
#endif // STA_PLATFORM_STM32
#endif // STA_CORE_STM32_DELAY_HPP