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:
parent
20f41814de
commit
89bc20dfa7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue