We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf5977 commit 687ae28Copy full SHA for 687ae28
os/hal/ports/SN32/LLD/SN32F2xx/SPI/hal_spi_v2_lld.c
@@ -63,11 +63,7 @@ static void spi_lld_configure(SPIDriver *spip) {
63
64
spip->spi->CTRL0 |= (spip->config->slave << 3);
65
spip->spi->CTRL0_b.SDODIS = false;
66
-
67
-#if SPI_SELECT_MODE == SPI_SELECT_MODE_LLD
68
- // Use hardware Auto-SEL
69
- spip->spi->CTRL0_b.SELDIS = false;
70
-#endif
+ spip->spi->CTRL0_b.SELDIS = SPI_SELECT_MODE != SPI_SELECT_MODE_LLD;
71
72
uint32_t sn32_spi_clock = (SN32_HCLK / ((2 * spip->config->clkdiv) + 2));
73
if (sn32_spi_clock > 6000000) {
0 commit comments