Add guards and warning for STM32 HAL include

This commit is contained in:
Henrik Stickann 2023-04-22 13:04:24 +02:00
parent d2fcd0c12c
commit db69a00b06

View File

@ -12,9 +12,15 @@
* @brief Modules implemented for the STM32 platform.
*/
#include <sta/config.hpp>
#ifdef STA_PLATFORM_STM32
// Include STM32 HAL headers
#include <main.h>
#else // !STA_PLATFORM_STM32
# warning "Included STM32 HAL on non-STM32 platform!"
#endif // !STA_PLATFORM_STM32
#endif // STA_CORE_STM32_HAL_HPP