mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-12-17 00:58:02 +00:00
Change module enable logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user