New SPI API supporting DMA
commit87c8847c13d7f759548c2384e400d2bc387b159a
authorSteve Evans <Steve@SCEvans.com>
Tue, 20 Apr 2021 18:45:56 +0000 (20 19:45 +0100)
committerMichael Keller <github@ike.ch>
Sun, 25 Jul 2021 00:40:25 +0000 (25 12:40 +1200)
tree2f596960c9c03651653b2532a9944c9ee7dad9e2
parent6d286e25f14f1b1bb977c2f17ffa42c3ffe985f3
New SPI API supporting DMA

Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc

Drop SPI clock during binding

Remove debug

Add per device SPI DMA enable

Fix sdioPinConfigure() declaration warning

Reduce clock speed during SPI RX initialisation
136 files changed:
make/mcu/STM32H7.mk
src/link/stm32_flash_f7_split.ld
src/link/stm32_flash_h723_1m.ld
src/link/stm32_flash_h743_2m.ld
src/link/stm32_flash_h750_128k.ld
src/link/stm32_flash_h750_1m.ld
src/link/stm32_flash_h7a3_2m.ld
src/link/stm32_h750_common.ld
src/link/stm32_ram_h743.ld
src/link/stm32_ram_h750_exst.ld
src/main/cli/settings.c
src/main/drivers/accgyro/accgyro.h
src/main/drivers/accgyro/accgyro_mpu.c
src/main/drivers/accgyro/accgyro_mpu.h
src/main/drivers/accgyro/accgyro_mpu6050.c
src/main/drivers/accgyro/accgyro_mpu6500.c
src/main/drivers/accgyro/accgyro_spi_bmi160.c
src/main/drivers/accgyro/accgyro_spi_bmi270.c
src/main/drivers/accgyro/accgyro_spi_bmi270.h
src/main/drivers/accgyro/accgyro_spi_icm20649.c
src/main/drivers/accgyro/accgyro_spi_icm20689.c
src/main/drivers/accgyro/accgyro_spi_icm20689.h
src/main/drivers/accgyro/accgyro_spi_icm42605.c
src/main/drivers/accgyro/accgyro_spi_icm42605.h
src/main/drivers/accgyro/accgyro_spi_l3gd20.c
src/main/drivers/accgyro/accgyro_spi_lsm6dso.c
src/main/drivers/accgyro/accgyro_spi_lsm6dso.h
src/main/drivers/accgyro/accgyro_spi_lsm6dso_init.c
src/main/drivers/accgyro/accgyro_spi_mpu6000.c
src/main/drivers/accgyro/accgyro_spi_mpu6000.h
src/main/drivers/accgyro/accgyro_spi_mpu6500.c
src/main/drivers/accgyro/accgyro_spi_mpu6500.h
src/main/drivers/accgyro/accgyro_spi_mpu9250.c
src/main/drivers/accgyro/accgyro_spi_mpu9250.h
src/main/drivers/barometer/barometer.h
src/main/drivers/barometer/barometer_bmp085.c
src/main/drivers/barometer/barometer_bmp280.c
src/main/drivers/barometer/barometer_bmp388.c
src/main/drivers/barometer/barometer_dps310.c
src/main/drivers/barometer/barometer_lps.c
src/main/drivers/barometer/barometer_ms5611.c
src/main/drivers/barometer/barometer_qmp6988.c
src/main/drivers/bus.c
src/main/drivers/bus.h
src/main/drivers/bus_i2c_busdev.c
src/main/drivers/bus_i2c_busdev.h [copied from src/main/drivers/accgyro/accgyro_spi_icm42605.h with 55% similarity]
src/main/drivers/bus_spi.c
src/main/drivers/bus_spi.h
src/main/drivers/bus_spi_hal.c
src/main/drivers/bus_spi_impl.h
src/main/drivers/bus_spi_ll.c
src/main/drivers/bus_spi_stdperiph.c
src/main/drivers/compass/compass.h
src/main/drivers/compass/compass_ak8963.c
src/main/drivers/compass/compass_ak8975.c
src/main/drivers/compass/compass_hmc5883l.c
src/main/drivers/compass/compass_lis3mdl.c
src/main/drivers/compass/compass_mpu925x_ak8963.c
src/main/drivers/compass/compass_qmc5883l.c
src/main/drivers/display_ug2864hsweg01.c
src/main/drivers/display_ug2864hsweg01.h
src/main/drivers/dma.h
src/main/drivers/dshot_bitbang.c
src/main/drivers/flash.c
src/main/drivers/flash_impl.h
src/main/drivers/flash_m25p16.c
src/main/drivers/flash_w25m.c
src/main/drivers/flash_w25n01g.c
src/main/drivers/light_ws2811strip.c
src/main/drivers/max7456.c
src/main/drivers/nvic.h
src/main/drivers/rx/rx_cc2500.c
src/main/drivers/rx/rx_spi.c
src/main/drivers/rx/rx_spi.h
src/main/drivers/sdcard_impl.h
src/main/drivers/sdcard_spi.c
src/main/drivers/system.c
src/main/drivers/system.h
src/main/drivers/vtx_rtc6705.c
src/main/fc/init.c
src/main/io/asyncfatfs/asyncfatfs.c
src/main/io/dashboard.c
src/main/io/flashfs.c
src/main/msc/emfat_file.c
src/main/msp/msp.c
src/main/osd/osd.c
src/main/pg/gyrodev.c
src/main/pg/gyrodev.h
src/main/pg/rcdevice.c
src/main/pg/rcdevice.h
src/main/pg/sdcard.c
src/main/pg/sdcard.h
src/main/rx/cc2500_frsky_shared.c
src/main/rx/rx.h
src/main/rx/rx_spi_common.c
src/main/sensors/acceleration_init.c
src/main/sensors/barometer.c
src/main/sensors/barometer.h
src/main/sensors/compass.c
src/main/sensors/gyro_init.c
src/main/sensors/gyro_init.h
src/main/startup/stm32g4xx_hal_conf.h [changed mode: 0755->0644]
src/main/startup/stm32h7xx_hal_conf.h
src/main/startup/system_stm32g4xx.h [changed mode: 0755->0644]
src/main/startup/system_stm32h7xx.c
src/main/target/BLUEJAYF4/hardware_revision.h
src/main/target/COLIBRI/target.c
src/main/target/HAKRCF411/target.c [changed mode: 0755->0644]
src/main/target/HAKRCF411/target.h [changed mode: 0755->0644]
src/main/target/MAMBAF411/target.c
src/main/target/MAMBAF722/target.c
src/main/target/MATEKH743/config.c
src/main/target/MERAKRCF405/target.c [copied from src/main/target/MERAKRCF722/target.c with 72% similarity]
src/main/target/MERAKRCF722/target.c
src/main/target/MOTOLABF4/config.c
src/main/target/NUCLEOH723ZG/config.c
src/main/target/NUCLEOH723ZG/target.h
src/main/target/NUCLEOH725ZG/config.c
src/main/target/NUCLEOH725ZG/target.h
src/main/target/NUCLEOH743/config.c
src/main/target/NUCLEOH7A3ZI/config.c
src/main/target/NUCLEOH7A3ZI/target.h
src/main/target/REVONANO/target.h
src/main/target/REVONANO/target.mk
src/main/target/SITL/target.h
src/main/target/SPRACINGF3EVO/config.c
src/main/target/SPRACINGH7EXTREME/config.c
src/main/target/SPRACINGH7ZERO/config.c
src/main/target/WORMFC/config.c
src/main/target/common_pre.h
src/main/vcp_hal/usbd_conf_stm32g4xx.c [changed mode: 0755->0644]
src/test/unit/baro_bmp085_unittest.cc
src/test/unit/baro_bmp280_unittest.cc
src/test/unit/baro_bmp388_unittest.cc
src/test/unit/baro_ms5611_unittest.cc
src/test/unit/target.h