aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f4/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32f4/internal.h')
-rw-r--r--src/stm32f4/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stm32f4/internal.h b/src/stm32f4/internal.h
index 22720a96..d19a0b98 100644
--- a/src/stm32f4/internal.h
+++ b/src/stm32f4/internal.h
@@ -2,7 +2,13 @@
#define __STM32F4_INTERNAL_H
// Local definitions for STM32F4 code
+#include "autoconf.h" // CONFIG_MACH_STM32F1xx
+
+#if CONFIG_MACH_STM32F1xx
+#include "stm32f1xx.h"
+#else
#include "stm32f4xx.h"
+#endif
extern GPIO_TypeDef * const digital_regs[];