git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2931 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
88d64d091d
commit
a02604be12
|
@ -28,7 +28,7 @@ static const SDCConfig sdccfg = {
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
static uint8_t buf[SDC_BLOCK_SIZE];
|
static uint8_t buf[SDC_BLOCK_SIZE * 16];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Application entry point.
|
* Application entry point.
|
||||||
|
@ -50,7 +50,10 @@ int main(void) {
|
||||||
*/
|
*/
|
||||||
sdcStart(&SDCD1, &sdccfg);
|
sdcStart(&SDCD1, &sdccfg);
|
||||||
if (!sdcConnect(&SDCD1)) {
|
if (!sdcConnect(&SDCD1)) {
|
||||||
sdcRead(&SDCD1, 0, buf, 1);
|
int i;
|
||||||
|
for (i = 0; i < 1000; i++)
|
||||||
|
if (sdcRead(&SDCD1, 0, buf, 16))
|
||||||
|
chSysHalt();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue