Routines for using the SPI interface of the Ethernut CPLD. More...
![]() |
Defines | |
#define | I2C_SLA_PLL 0x69 |
Functions | |
int | NplMmCard0Avail (void) |
Check if card is available. | |
int | NplMmCard0WrProt (void) |
Check if card is write protected. | |
Variables | |
NUTDEVICE | devNplMmc0 |
Multimedia card device information structure. | |
NUTDEVICE | devSbiMmc0 |
Multimedia card device information structure. | |
NUTDEVICE | devNplMmc0 |
Multimedia card device information structure. |
Routines for using the SPI interface of the Ethernut CPLD.
Low Level Multimedia Card Access.
Low level MMC hardware routines for the programmable logic provided on the Ethernut 3 reference design.
These routines support SPI mode only and are required by the basic MMC driver.
* * $Log$ * Revision 1.6 2009/01/17 11:26:46 haraldkipp * Getting rid of two remaining BSD types in favor of stdint. * Replaced 'u_int' by 'unsinged int' and 'uptr_t' by 'uintptr_t'. * * Revision 1.5 2008/08/11 06:59:42 haraldkipp * BSD types replaced by stdint types (feature request #1282721). * * Revision 1.4 2008/07/14 13:13:45 haraldkipp * Added delays to make slow cards working. * * Revision 1.3 2006/08/05 12:01:05 haraldkipp * Hard coded PLL selections replaced by configurable definitions. * * Revision 1.2 2006/01/19 18:40:47 haraldkipp * MMC clock rate now uses the CY2239x driver routines to calculate a * configurable value. Additional NOPs had been added to the SPI I/O, * which seems to make the driver more stable. * * Revision 1.1 2006/01/05 16:31:02 haraldkipp * First check-in. * * *
#define I2C_SLA_PLL 0x69 |
Definition at line 97 of file nplmmc.c.
Referenced by Cy2239xGetDivider(), Cy2239xGetFreq(), Cy2239xGetPll(), Cy2239xPllEnable(), Cy2239xPllGetFreq(), Cy2239xPllSetFreq(), Cy2239xSetDivider(), and Cy2239xSetPll().
int NplMmCard0Avail | ( | void | ) |
Check if card is available.
int NplMmCard0WrProt | ( | void | ) |
NUTDEVICE devNplMmc0 |
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).
NUTDEVICE devSbiMmc0 |
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).
NUTDEVICE devNplMmc0 |
{ 0, {'M', 'M', 'C', '0', 0, 0, 0, 0, 0} , 0, 0, 0, &mmc0_ifc, &mmc0_dcb, NplMmcIfcInit, MmCardIOCtl, MmCardBlockRead, MmCardBlockWrite, MmCardBlockWrite_P, MmCardMount, MmCardUnmount, 0 }
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).