Included Files
- #include <nut/include/cfg/clock.h>
- #include <nut/include/sys/event.h>
- #include <nut/include/dev/twif.h>
- #include <nut/include/dev/npl.h>
- #include <nut/include/dev/mmcard.h>
- #include <nut/include/dev/cy2239x.h>
- #include <nut/include/dev/nplmmc.h>
Preprocessor definitions
#define NPL_MMC_CLOCK 12500000
#define I2C_SLA_PLL 0x69
typedef struct _MMCDCB MMCDCB
struct _MMCDCB
|
|
{
|
|
int dcb_avail;
|
|
int dcb_changed;
|
|
}
|
|
NUTDEVICE devNplMmc0
Local Variables
mmc0_dcb
static MMCDCB mmc0_dcb
mmc0_ifc
static MMCIFC mmc0_ifc
int NplMmCard0Avail ( void )
int NplMmCard0WrProt ( void )
static int NplMmCard0Init ( void )
static void NplMmCard0InsIrq ( void* arg )
static uint8_t NplMmCard0Io ( uint8_t val )
static void NplMmCard0RemIrq ( void* arg )
static int NplMmCard0Select ( int on )
static int NplMmcIfcInit ( NUTDEVICE* dev )