STM32 SPI: fix NSS pin configuration

pull/6951/head
bcostm 2018-05-18 14:26:26 +02:00
parent 79640c6a88
commit 2d7b13c540
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ void spi_init(spi_t *obj, PinName mosi, PinName miso, PinName sclk, PinName ssel
spiobj->pin_ssel = ssel;
if (ssel != NC) {
pinmap_pinout(ssel, PinMap_SPI_SSEL);
handle->Init.NSS = SPI_NSS_HARD_OUTPUT;
} else {
handle->Init.NSS = SPI_NSS_SOFT;
}