Skip to content

Commit 2d7b13c

Browse files
committed
STM32 SPI: fix NSS pin configuration
1 parent 79640c6 commit 2d7b13c

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)