Skip to content

Commit ea13262

Browse files
author
Cruz Monrreal
authored
Merge pull request #6951 from bcostm/fix_spi_nss_config
STM32 SPI: fix NSS pin configuration
2 parents ab5d7e1 + 2d7b13c commit ea13262

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_STM/stm_spi_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ void spi_init(spi_t *obj, PinName mosi, PinName miso, PinName sclk, PinName ssel
163163
spiobj->pin_ssel = ssel;
164164
if (ssel != NC) {
165165
pinmap_pinout(ssel, PinMap_SPI_SSEL);
166+
handle->Init.NSS = SPI_NSS_HARD_OUTPUT;
166167
} else {
167168
handle->Init.NSS = SPI_NSS_SOFT;
168169
}

0 commit comments

Comments
 (0)