mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
[H7] Add SDMMC2 support
This commit is contained in:
parent
b94da4a5ee
commit
a3ee09b434
11 changed files with 271 additions and 60 deletions
|
@ -69,6 +69,7 @@
|
|||
#include "drivers/serial_softserial.h"
|
||||
#include "drivers/serial_uart.h"
|
||||
#include "drivers/sdcard.h"
|
||||
#include "drivers/sdio.h"
|
||||
#include "drivers/sound_beeper.h"
|
||||
#include "drivers/system.h"
|
||||
#include "drivers/time.h"
|
||||
|
@ -181,8 +182,6 @@ serialPort_t *loopbackPort;
|
|||
|
||||
uint8_t systemState = SYSTEM_STATE_INITIALISING;
|
||||
|
||||
void SDIO_GPIO_Init(void);
|
||||
|
||||
void processLoopback(void)
|
||||
{
|
||||
#ifdef SOFTSERIAL_LOOPBACK
|
||||
|
@ -318,6 +317,7 @@ void init(void)
|
|||
pgResetAll();
|
||||
|
||||
#if defined(STM32H7) && defined(USE_SDCARD_SDIO) // H7 only for now, likely should be applied to F4/F7 too
|
||||
sdioPinConfigure();
|
||||
SDIO_GPIO_Init();
|
||||
#endif
|
||||
#ifdef USE_SDCARD_SPI
|
||||
|
@ -618,6 +618,7 @@ void init(void)
|
|||
|
||||
#if defined(STM32H7) && defined(USE_SDCARD_SDIO) // H7 only for now, likely should be applied to F4/F7 too
|
||||
if (!(initFlags & SD_INIT_ATTEMPTED)) {
|
||||
sdioPinConfigure();
|
||||
SDIO_GPIO_Init();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue