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