diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h index 2f2146416..db1a0d9c8 100644 --- a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h +++ b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h @@ -1014,6 +1014,22 @@ #error "Using a wrong mcuconf.h file, STM32F4xx_MCUCONF not defined" #endif +#if defined(STM32F405xx) && !defined(STM32F405_MCUCONF) +#error "Using a wrong mcuconf.h file, STM32F405_MCUCONF not defined" +#endif + +#if defined(STM32F415xx) && !defined(STM32F415_MCUCONF) +#error "Using a wrong mcuconf.h file, STM32F415_MCUCONF not defined" +#endif + +#if defined(STM32F407xx) && !defined(STM32F407_MCUCONF) +#error "Using a wrong mcuconf.h file, STM32F407_MCUCONF not defined" +#endif + +#if defined(STM32F417xx) && !defined(STM32F417_MCUCONF) +#error "Using a wrong mcuconf.h file, STM32F417_MCUCONF not defined" +#endif + #else /* !defined(STM32F4XX) */ /* * Configuration-related checks.