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 <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2017-04-28 15:02:03 +02:00 committed by Anas Nashif
commit 89bc20dfa7

View file

@ -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