git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2931 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2011-05-08 09:08:46 +00:00
parent 88d64d091d
commit a02604be12
1 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ static const SDCConfig sdccfg = {
0
};
static uint8_t buf[SDC_BLOCK_SIZE];
static uint8_t buf[SDC_BLOCK_SIZE * 16];
/*
* Application entry point.
@ -50,7 +50,10 @@ int main(void) {
*/
sdcStart(&SDCD1, &sdccfg);
if (!sdcConnect(&SDCD1)) {
sdcRead(&SDCD1, 0, buf, 1);
int i;
for (i = 0; i < 1000; i++)
if (sdcRead(&SDCD1, 0, buf, 16))
chSysHalt();
}
/*