summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorKarel Gardas <karel@functional.vision>2022-05-16 14:56:40 +0200
committerKarel Gardas <karel@functional.vision>2022-06-01 11:20:59 +0200
commit7cb73a34d492bf1f568672bf9403eadf25559cbf (patch)
treee1f42b97484bfcedc89b4b4a7cbdb5eb640a341a /bsps
parentbsps/stm32h7: move cache implementation from obj to BSPs own yml file (diff)
downloadrtems-7cb73a34d492bf1f568672bf9403eadf25559cbf.tar.bz2
bsps/stm32h7: include CMSIS Cortex-M4 header when required by configuration
Sponsored-By: Precidata
Diffstat (limited to 'bsps')
-rw-r--r--bsps/arm/stm32h7/include/chip.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bsps/arm/stm32h7/include/chip.h b/bsps/arm/stm32h7/include/chip.h
index 26b067a3b7..ac579c0743 100644
--- a/bsps/arm/stm32h7/include/chip.h
+++ b/bsps/arm/stm32h7/include/chip.h
@@ -29,6 +29,13 @@
#define LIBBSP_ARM_STM32H7_CHIP_H
#include <stm32h7xx.h>
+#if defined(CORE_CM7) || defined(BOOT_CORE_DEFINE_NOT_NEEDED)
+/* M7 is a default core of the H7 family */
#include <core_cm7.h>
+#elif defined(CORE_CM4)
+#include <core_cm4.h>
+#else
+#error "Boot core definition missing!"
+#endif
#endif /* LIBBSP_ARM_STM32H7_CHIP_H */