refactor: SD card SPI HAL (#3957)

* refactor: SD card SPI driver

* Removed SPI and DMA StdPeriph drivers

* Allow for disabling SPI DMA support

* Disable SPI sdcard CRC support

* Fix 2MHz timer on NV14

* Shared VS1053b driver

* Fix: SPI2 uses PCLK1

* feat: new generic diskio API

* More generic SD_CARD_PRESENT()

* Fixes

* Flush incoming block on token mismatch

* Scratch buffer test

* Incredible hack to re-sync sd card

* fix: SDIO driver
This commit is contained in:
Raphael Coeffic
2023-09-23 19:31:56 +10:00
committed by GitHub
parent 870fe7eca3
commit 87df8a4f2c
61 changed files with 2697 additions and 2628 deletions
+1 -2
View File
@@ -140,7 +140,6 @@ set(FIRMWARE_TARGET_SRC
${TOUCH_DRIVER}
sdram_driver.c
battery_driver.cpp
audio_spi_driver.cpp
backlight_driver.cpp
)
@@ -153,8 +152,8 @@ set(FIRMWARE_SRC
targets/common/arm/stm32/stm32_usart_driver.cpp
targets/common/arm/stm32/trainer_driver.cpp
targets/common/arm/stm32/pwr_driver.cpp
targets/common/arm/stm32/sdio_sd.cpp
targets/common/arm/stm32/diskio_sdio.cpp
targets/common/arm/stm32/vs1053b.cpp
)
# Make malloc() thread-safe