Skip to content
Permalink
Browse files

STM32: fixed and separated H7 Configuration-related checks for H743/H753

@tridge - this was causing my build to fail when I specified "MCU STM32H7xx STM32H753xx" in my new hwdef.dat file.
  • Loading branch information...
pkocmoud authored and tridge committed Mar 11, 2019
1 parent 8c54eb1 commit 1f79c12407df4423d3b77766f74b5103c383e0e2
Showing with 6 additions and 1 deletion.
  1. +6 −1 os/hal/ports/STM32/STM32H7xx/hal_lld.h
@@ -1217,11 +1217,16 @@
#error "Using a wrong mcuconf.h file, STM32H7xx_MCUCONF not defined"
#endif

#if (defined(STM32H743xx) || defined(STM32H753xx)) && \
#if defined(STM32H743xx) && \
!defined(STM32H743_MCUCONF)
#error "Using a wrong mcuconf.h file, STM32H743_MCUCONF not defined"
#endif

#if defined(STM32H753xx) && \
!defined(STM32H753_MCUCONF)
#error "Using a wrong mcuconf.h file, STM32H753_MCUCONF not defined"
#endif

/*
* Board file checks.
*/

0 comments on commit 1f79c12

Please sign in to comment.
You can’t perform that action at this time.