1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-23 21:43:51 +01:00
Marian Buschsieweke 63a2a50b5f
cpu/stm32/periph_spi: Fix /CS handling
Previously, the /CS signal was performed by enabling / disabling the
SPI peripheral. This had the disadvantage that clock polarity settings
where not applied starting with `spi_acquire()`, as assumed by e.g.
the SPI SD card driver, but only just before transmitting data.

Now the SPI peripheral is enabled on `spi_acquire()` and only disabled
when calling `spi_release()`, and the `SPI_CR2_SSOE` bit in the `CR2`
register is used for hardware /CS handling (as supposed to).
2023-11-24 08:49:25 +01:00
..
2022-02-21 10:49:43 +01:00
2022-02-21 10:49:43 +01:00
2022-02-21 10:49:43 +01:00
2023-10-16 12:17:48 +02:00
2020-10-23 00:46:26 +02:00
2023-07-26 09:02:10 +02:00
2022-09-15 12:12:23 +02:00
2021-09-07 10:06:31 +02:00
2020-10-23 00:46:26 +02:00
2021-09-07 10:06:31 +02:00
2020-10-23 00:46:26 +02:00
2023-11-24 08:49:25 +01:00
2022-02-21 10:49:43 +01:00
2020-10-23 11:29:57 +02:00