mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-12 01:25:59 +00:00
Add guards and warning for STM32 HAL include
This commit is contained in:
parent
d2fcd0c12c
commit
db69a00b06
@ -12,9 +12,15 @@
|
|||||||
* @brief Modules implemented for the STM32 platform.
|
* @brief Modules implemented for the STM32 platform.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sta/config.hpp>
|
||||||
|
#ifdef STA_PLATFORM_STM32
|
||||||
|
|
||||||
// Include STM32 HAL headers
|
// Include STM32 HAL headers
|
||||||
#include <main.h>
|
#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
|
#endif // STA_CORE_STM32_HAL_HPP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user