Contiki-NG
|
SD/MMC device driver. More...
Modules | |
SD/MMC architecture-specific definitions | |
SD/MMC device driver architecture-specific definitions. | |
Files | |
file | mmc.c |
Implementation of the SD/MMC device driver. | |
file | mmc.h |
Header file for the SD/MMC device driver. | |
Macros | |
#define | MMC_CONF_DEV_COUNT 1 |
Number of SD/MMC devices. More... | |
Functions | |
void | mmc_arch_cd_changed_callback (uint8_t dev, bool cd) |
Callback of the SD/MMC driver to call when the card-detection signal changes. More... | |
SD/MMC device driver.
#define MMC_CONF_DEV_COUNT 1 |
Number of SD/MMC devices.
Definition at line 51 of file mmc.h.
Referenced by mmc_arch_cd_changed_callback().
void mmc_arch_cd_changed_callback | ( | uint8_t | dev, |
bool | cd | ||
) |
Callback of the SD/MMC driver to call when the card-detection signal changes.
dev | Device |
cd | Whether a card is detected |
Definition at line 312 of file mmc.c.
References clock_delay_usec(), DISK_IOCTL_CTRL_SYNC, DISK_IOCTL_GET_BLOCK_SIZE, DISK_IOCTL_GET_SECTOR_COUNT, DISK_IOCTL_GET_SECTOR_SIZE, DISK_RESULT_INVALID_ARG, DISK_RESULT_IO_ERROR, DISK_RESULT_NO_INIT, DISK_RESULT_OK, DISK_RESULT_WR_PROTECTED, DISK_STATUS_DISK, DISK_STATUS_INIT, DISK_STATUS_WRITABLE, mmc_arch_get_cd(), mmc_arch_get_wp(), mmc_arch_spi_select(), mmc_arch_spi_set_clock_freq(), MMC_CONF_DEV_COUNT, RTIMER_NOW, disk_driver::status, and watchdog_periodic().