aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f4/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32f4/gpio.c')
-rw-r--r--src/stm32f4/gpio.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stm32f4/gpio.c b/src/stm32f4/gpio.c
index 77a00c0f..9fbbdaec 100644
--- a/src/stm32f4/gpio.c
+++ b/src/stm32f4/gpio.c
@@ -16,15 +16,20 @@ DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 32);
DECL_ENUMERATION_RANGE("pin", "PC0", GPIO('C', 0), 32);
DECL_ENUMERATION_RANGE("pin", "PD0", GPIO('D', 0), 32);
DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 32);
+#ifdef GPIOH
DECL_ENUMERATION_RANGE("pin", "PF0", GPIO('F', 0), 32);
DECL_ENUMERATION_RANGE("pin", "PG0", GPIO('G', 0), 32);
DECL_ENUMERATION_RANGE("pin", "PH0", GPIO('H', 0), 32);
+#endif
#ifdef GPIOI
DECL_ENUMERATION_RANGE("pin", "PI0", GPIO('I', 0), 32);
#endif
GPIO_TypeDef * const digital_regs[] = {
- GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH,
+ GPIOA, GPIOB, GPIOC, GPIOD, GPIOE,
+#ifdef GPIOH
+ GPIOF, GPIOG, GPIOH,
+#endif
#ifdef GPIOI
GPIOI,
#endif