Skip to content

Commit 3106ca4

Browse files
committed
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 <[email protected]>
1 parent 55578f5 commit 3106ca4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pinmux/stm32/pinmux_stm32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ static const u32_t ports_enable[STM32_PORTS_MAX] = {
2828
STM32_PERIPH_GPIOA,
2929
STM32_PERIPH_GPIOB,
3030
STM32_PERIPH_GPIOC,
31+
#ifdef GPIOD_BASE
3132
STM32_PERIPH_GPIOD,
33+
#endif
3234
#ifdef GPIOE_BASE
3335
STM32_PERIPH_GPIOE,
3436
#endif

0 commit comments

Comments
 (0)