mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Introduce per device pin pre-init
This commit is contained in:
parent
2e81109be1
commit
9ea1428d11
44 changed files with 219 additions and 201 deletions
|
@ -101,6 +101,15 @@ bool sdcard_isInserted(void)
|
|||
*/
|
||||
sdcardVTable_t *sdcardVTable;
|
||||
|
||||
void sdcard_preInit(const sdcardConfig_t *config)
|
||||
{
|
||||
#ifdef USE_SDCARD_SPI
|
||||
sdcardSpiVTable.sdcard_preInit(config);
|
||||
#else
|
||||
UNUSED(config);
|
||||
#endif
|
||||
}
|
||||
|
||||
void sdcard_init(const sdcardConfig_t *config)
|
||||
{
|
||||
switch (config->mode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue