50 if (!sdc_lld_is_card_inserted(sdc)) {
59 for (
uint8_t i = 0; i < 3; i++) {
61 if (sdcConnect(sdc) == HAL_SUCCESS) {
66 chThdSleepMilliseconds(100);
78 if (sdcDisconnect(sdc)) {
88 return sdc_lld_is_card_inserted(sdc);
Some architecture independent helper functions for GPIOs.
arch independent SDIO API
struct SDCDriver SDCDriver
bool sdio_connect(SDCDriver *sdc)
Connect a SD card on SDIO peripheral.
bool is_card_inserted(SDCDriver *sdc)
Check if a SD card is inserted.
bool sdio_disconnect(SDCDriver *sdc)
Disconnect a SD card on SDIO peripheral.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.