Defines | |
#define | MMC_PIO_ASR PIOA_ASR |
#define | MMC_PIO_BSR PIOA_BSR |
#define | MMC_PIO_PDR PIOA_PDR |
#define | MMC_PINS_A (_BV(MMC_DATAOUT_BIT) | _BV(MMC_DATAIN_BIT) | _BV(MMC_CLK_BIT)) |
#define | MMC_PINS_B 0 |
#define | MMC_CS_PER PIOA_PER |
#define | MMC_CS_OER PIOA_OER |
#define | MMC_CS_SODR PIOA_SODR |
#define | MMC_CS_CODR PIOA_CODR |
#define | MMC_SPI_CR SPI0_CR |
#define | MMC_SPI_MR SPI0_MR |
#define | MMC_SPI_RDR SPI0_RDR |
#define | MMC_SPI_TDR SPI0_TDR |
#define | MMC_SPI_SR SPI0_SR |
#define | MMC_SPI_CSR1 SPI0_CSR1 |
#define | MMC_SPI_ID SPI0_ID |
Functions | |
int | At91SpiMmCard0Avail (void) |
Check if card is available in slot 0. | |
int | At91SpiMmCard0WrProt (void) |
Check if card in slot 0 is write protected. | |
Variables | |
NUTDEVICE | devAt91SpiMmc0 |
Multimedia card device information structure. | |
NUTDEVICE | devAt91SpiMmc0 |
Multimedia card device information structure. |
|
Check if card is available in slot 0.
|
|
Check if card in slot 0 is write protected.
|
|
Multimedia card device information structure. A pointer to this structure must be passed to NutRegisterDevice() to bind this driver to the Nut/OS kernel. An application may then call /verbatim _open("MMC0:", _O_RDWR | _O_BINARY); /endverbatim to mount the first active primary partition with any previously registered file system driver (typically devPhat0). |
|
Initial value: { 0, {'M', 'M', 'C', '0', 0, 0, 0, 0, 0} , 0, 0, 0, &mmc0_ifc, 0, At91SpiMmcIfcInit, MmCardIOCtl, MmCardBlockRead, MmCardBlockWrite, MmCardBlockWrite_P, MmCardMount, MmCardUnmount, 0 } A pointer to this structure must be passed to NutRegisterDevice() to bind this driver to the Nut/OS kernel. An application may then call /verbatim _open("MMC0:", _O_RDWR | _O_BINARY); /endverbatim to mount the first active primary partition with any previously registered file system driver (typically devPhat0). |