From 89bc20dfa769b59c05b8e0c087ec416e9ea62f17 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 28 Apr 2017 15:02:03 +0200 Subject: [PATCH] pinmux: stm32: Do not compile PORTD when not available The STM32L432 does not have a PORTD gpio, disable it when not available. Signed-off-by: Neil Armstrong --- drivers/pinmux/stm32/pinmux_stm32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinmux/stm32/pinmux_stm32.c b/drivers/pinmux/stm32/pinmux_stm32.c index 0fe6abd0136..1f699a8173d 100644 --- a/drivers/pinmux/stm32/pinmux_stm32.c +++ b/drivers/pinmux/stm32/pinmux_stm32.c @@ -28,7 +28,9 @@ static const u32_t ports_enable[STM32_PORTS_MAX] = { STM32_PERIPH_GPIOA, STM32_PERIPH_GPIOB, STM32_PERIPH_GPIOC, +#ifdef GPIOD_BASE STM32_PERIPH_GPIOD, +#endif #ifdef GPIOE_BASE STM32_PERIPH_GPIOE, #endif