mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 13:55:18 +03:00
[H7] - QuadSPI support
- Initial cut - QuadSPI - Update before flash w25n01g driver QSPI change - QuadSPI add missing resource names. - Config and setup code for QSPI bank 2 (doesn't work yet) - QSPI Support BK2 only using CS pin via software - Fix inclusion of platform.h - Fixes per PR comment
This commit is contained in:
parent
1cbff2b9aa
commit
8b131090c0
12 changed files with 1184 additions and 2 deletions
|
@ -47,6 +47,7 @@
|
|||
#include "drivers/adc.h"
|
||||
#include "drivers/bus.h"
|
||||
#include "drivers/bus_i2c.h"
|
||||
#include "drivers/bus_quadspi.h"
|
||||
#include "drivers/bus_spi.h"
|
||||
#include "drivers/buttons.h"
|
||||
#include "drivers/camera_control.h"
|
||||
|
@ -133,6 +134,7 @@
|
|||
#include "pg/beeper_dev.h"
|
||||
#include "pg/bus_i2c.h"
|
||||
#include "pg/bus_spi.h"
|
||||
#include "pg/bus_quadspi.h"
|
||||
#include "pg/flash.h"
|
||||
#include "pg/mco.h"
|
||||
#include "pg/pinio.h"
|
||||
|
@ -456,6 +458,15 @@ void init(void)
|
|||
#endif
|
||||
#endif // USE_SPI
|
||||
|
||||
#ifdef USE_QUADSPI
|
||||
quadSpiPinConfigure(quadSpiConfig(0));
|
||||
|
||||
#ifdef USE_QUADSPI_DEVICE_1
|
||||
quadSpiInit(QUADSPIDEV_1);
|
||||
#endif
|
||||
#endif // USE_QUAD_SPI
|
||||
|
||||
|
||||
#ifdef USE_USB_MSC
|
||||
/* MSC mode will start after init, but will not allow scheduler to run,
|
||||
* so there is no bottleneck in reading and writing data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue