#include <cfg/arch.h>
#include <cfg/arch/gpio.h>
#include <cfg/mmci.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <sys/heap.h>
#include <sys/timer.h>
#include <sys/event.h>
#include <fs/dospart.h>
#include <fs/fs.h>
#include <dev/blockdev.h>
#include <dev/mmcard.h>
#include <dev/at91_mci.h>
Go to the source code of this file.
Data Structures | |
struct | _MCIFC |
Local card interface information. More... | |
struct | _MCIFCB |
Local multimedia card mount information. More... | |
Defines | |
#define | MMC_BLOCK_SIZE 512 |
#define | MCI_INI_BITRATE 400000 |
#define | MCI_MMC_BITRATE 20000000 |
#define | MCI_SDC_BITRATE 25000000 |
#define | MMCARD_VRANGE (MMCARD_32_33V | MMCARD_31_32V | MMCARD_30_31V) |
#define | MMC_PINS_A _BV(PA8_MCCK_A) |
#define | MMC_PINS_B _BV(PA1_MCCDB_B) | _BV(PA0_MCDB0_B) | _BV(PA5_MCDB1_B) | _BV(PA4_MCDB2_B) | _BV(PA3_MCDB3_B) |
#define | MCICMD_ALL_SEND_CID (MMCMD_ALL_SEND_CID | MCI_MAXLAT | MCI_RSPTYP_136) |
#define | MCICMD_DESELECT_CARD (MMCMD_SELECT_CARD) |
#define | MCICMD_GO_IDLE_STATE (MMCMD_GO_IDLE_STATE) |
#define | MCICMD_READ_SINGLE_BLOCK (MMCMD_READ_SINGLE_BLOCK | MCI_TRCMD_START | MCI_TRDIR | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_SELECT_CARD (MMCMD_SELECT_CARD | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_SEND_APP_CMD (MMCMD_SEND_APP_CMD | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_SEND_APP_OP_COND (MMCMD_SEND_APP_OP_COND | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_SEND_OP_COND (MMCMD_SEND_OP_COND | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_SEND_RELATIVE_ADDR (MMCMD_SEND_RELATIVE_ADDR | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_SEND_STATUS (MMCMD_SEND_STATUS | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_SET_BLOCKLEN (MMCMD_SET_BLOCKLEN | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_WRITE_BLOCK (MMCMD_WRITE_BLOCK | MCI_TRCMD_START | MCI_MAXLAT | MCI_RSPTYP_48) |
#define | MCICMD_IERROR (MCI_RTOE | MCI_RENDE | MCI_RDIRE | MCI_RINDE) |
#define | MCICMD_ERROR (MCI_UNRE | MCI_OVRE | MCI_DTOE | MCI_DCRCE | MCI_RCRCE | MCICMD_IERROR) |
#define | MCIFLG_SDCARD 0x00000001 |
#define | MCIFLG_4BIT 0x00000010 |
Typedefs | |
typedef struct _MCIFC | MCIFC |
Local card interface information. | |
typedef struct _MCIFCB | MCIFCB |
Local multimedia card mount information. | |
Variables | |
NUTDEVICE | devAt91Mci0 |
Multimedia card device information structure. |