mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Fixes SD_DET for SDIO
This commit is contained in:
parent
5b91ec41e3
commit
bc95da4259
2 changed files with 5 additions and 0 deletions
|
@ -204,6 +204,9 @@ void sdcard_init(const sdcardConfig_t *config)
|
||||||
} else {
|
} else {
|
||||||
sdcard.cardDetectPin = IO_NONE;
|
sdcard.cardDetectPin = IO_NONE;
|
||||||
}
|
}
|
||||||
|
if (config->cardDetectInverted) {
|
||||||
|
sdcard.detectionInverted = 1;
|
||||||
|
}
|
||||||
if (sdioConfig()->useCache) {
|
if (sdioConfig()->useCache) {
|
||||||
sdcard.useCache = 1;
|
sdcard.useCache = 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -3818,6 +3818,8 @@ const cliResourceValue_t resourceTable[] = {
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_SDCARD_SPI
|
#ifdef USE_SDCARD_SPI
|
||||||
DEFS( OWNER_SDCARD_CS, PG_SDCARD_CONFIG, sdcardConfig_t, chipSelectTag ),
|
DEFS( OWNER_SDCARD_CS, PG_SDCARD_CONFIG, sdcardConfig_t, chipSelectTag ),
|
||||||
|
#endif
|
||||||
|
#ifdef USE_SDCARD
|
||||||
DEFS( OWNER_SDCARD_DETECT, PG_SDCARD_CONFIG, sdcardConfig_t, cardDetectTag ),
|
DEFS( OWNER_SDCARD_DETECT, PG_SDCARD_CONFIG, sdcardConfig_t, cardDetectTag ),
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_PINIO
|
#ifdef USE_PINIO
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue