50 if (!sdc_lld_is_card_inserted (NULL)) {
64 PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING | PAL_STM32_MODE_ALTERNATE;
74 chThdSleepMilliseconds(100);
77 sdcStart(&SDCD1, NULL);
78 while (sdcConnect(&SDCD1) != HAL_SUCCESS) {
79 chThdSleepMilliseconds(100);
91 if (sdcDisconnect(&SDCD1)) {
101 return sdc_lld_is_card_inserted (NULL);
arch independent SDIO API
Some architecture independent helper functions for GPIOs.
bool is_card_inserted(void)
Check if a SD card is inserted.
bool sdio_disconnect(void)
Disconnect a SD card on SDIO peripheral.
#define SDIO_D0_PORT
SDIO.
bool sdio_connect(void)
Connect a SD card on SDIO peripheral.
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...