drivers/pinmux: stm32: Use pull-up for _SPI_NSS pins
To work efficiently, SPI_NSS pins require pull-up configuration. Fix this for whole STM32 series. Fixes #17998 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
916bf0e682
commit
90df6a3291
10 changed files with 34 additions and 31 deletions
|
@ -103,7 +103,10 @@
|
|||
/* Hardware master NSS output disabled */
|
||||
#define STM32_PIN_SPI_MASTER_NSS (STM32_MODE_INPUT | STM32_CNF_IN_FLOAT)
|
||||
/* Hardware master NSS output enabled */
|
||||
#define STM32_PIN_SPI_MASTER_NSS_OE (STM32_MODE_OUTPUT | STM32_CNF_ALT_FUNC | STM32_CNF_PUSH_PULL)
|
||||
#define STM32_PIN_SPI_MASTER_NSS_OE (STM32_MODE_OUTPUT | \
|
||||
STM32_CNF_ALT_FUNC | \
|
||||
STM32_CNF_PUSH_PULL | \
|
||||
STM32_PUPD_PULL_UP)
|
||||
#define STM32_PIN_SPI_SLAVE_NSS (STM32_MODE_INPUT | STM32_CNF_IN_FLOAT)
|
||||
#define STM32_PIN_USB (STM32_MODE_INPUT | STM32_CNF_IN_PUPD)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue