[PATCH 4/7] bsps/stm32h7: include CMSIS Cortex-M4 header when required by configuration

Sebastian Huber sebastian.huber at embedded-brains.de
Mon May 23 12:35:45 UTC 2022


On 16/05/2022 16:02, Karel Gardas wrote:
> Sponsored-By:	Precidata
> ---
>   bsps/arm/stm32h7/include/chip.h | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> 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 */

How is CORE_CM7 defined?

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list