Project

General

Profile

« Previous | Next » 

Revision 101

Added by markw about 11 years ago

Prepare interface for alternative version of mmc.c - for >1GB cards

View differences:

mmc.c
#include "mmcconf.h"
#include "debug.h"
u08 mmcSendCommand(u08 cmd, u32 arg);
u08 mmcCommand(u08 cmd, u32 arg);
void mmcInit(void)
{
// initialize SPI interface
......
return 0;
}
void mmc_init()
{
do
{
mmcInit();
}
while(mmcReset()); //dokud nenulove, tak smycka (return 0 => ok!)
}
u08 mmcSendCommand(u08 cmd, u32 arg)
{
u08 r1;

Also available in: Unified diff