stm32: spi-v2: enable SSOE by default for the common case
See also https://github.com/libopencm3/libopencm3/commit/f80bff213353b01166c995ade9080de105fb8867 This makes the v2 peripheral behave consistently with the v1 peripheral code, and more in line with users expectations. Fixes: https://github.com/libopencm3/libopencm3/issues/391 Fixes: https://github.com/libopencm3/libopencm3/issues/232
This commit is contained in:
@@ -87,8 +87,7 @@ int spi_init_master(uint32_t spi, uint32_t br, uint32_t cpol, uint32_t cpha,
|
||||
reg32 |= cpha; /* Set CPHA value. */
|
||||
reg32 |= lsbfirst; /* Set frame format (LSB- or MSB-first). */
|
||||
|
||||
/* TODO: NSS pin handling. */
|
||||
|
||||
SPI_CR2(spi) |= SPI_CR2_SSOE; /* common case */
|
||||
SPI_CR1(spi) = reg32;
|
||||
|
||||
return 0; /* TODO */
|
||||
|
||||
Reference in New Issue
Block a user