48 if (!sdc_lld_is_card_inserted (NULL)) {
61 const uint32_t mode = PAL_MODE_ALTERNATE(12) | PAL_STM32_OTYPE_PUSHPULL |
62 PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING | PAL_STM32_MODE_ALTERNATE;
72 chThdSleepMilliseconds(100);
75 sdcStart(&SDCD1, NULL);
76 while (sdcConnect(&SDCD1) != HAL_SUCCESS) {
77 chThdSleepMilliseconds(100);
89 if (sdcDisconnect(&SDCD1)) {
99 return sdc_lld_is_card_inserted (NULL);
arch independent SDIO API
bool is_card_inserted(void)
Check if a SD card is inserted.
bool sdio_disconnect(void)
Disconnect a SD card on SDIO peripheral.
bool sdio_connect(void)
Connect a SD card on SDIO peripheral.