SDIO. Added buffer for driver in testhal.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7696 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
d5307c5e08
commit
20551e0172
|
@ -22,12 +22,17 @@
|
||||||
#include "chprintf.h"
|
#include "chprintf.h"
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Working area for driver.
|
||||||
|
*/
|
||||||
|
static uint8_t sd_scratchpad[512];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SDIO configuration.
|
* SDIO configuration.
|
||||||
*/
|
*/
|
||||||
static const SDCConfig sdccfg = {
|
static const SDCConfig sdccfg = {
|
||||||
SDC_MODE_4BIT,
|
SDC_MODE_4BIT,
|
||||||
NULL
|
sd_scratchpad
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -50,7 +55,7 @@ static msg_t Thread1(void *arg) {
|
||||||
/* Command line related. */
|
/* Command line related. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(2048)
|
#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(2048)
|
||||||
|
|
||||||
#define SDC_BURST_SIZE 16
|
#define SDC_BURST_SIZE 16
|
||||||
|
|
||||||
|
@ -80,6 +85,7 @@ void cmd_sdc(BaseSequentialStream *chp, int argc, char *argv[]) {
|
||||||
chprintf(chp, "failed\r\n");
|
chprintf(chp, "failed\r\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
chprintf(chp, "OK\r\n\r\nCard Info\r\n");
|
chprintf(chp, "OK\r\n\r\nCard Info\r\n");
|
||||||
chprintf(chp, "CSD : %08X %8X %08X %08X \r\n",
|
chprintf(chp, "CSD : %08X %8X %08X %08X \r\n",
|
||||||
SDCD1.csd[3], SDCD1.csd[2], SDCD1.csd[1], SDCD1.csd[0]);
|
SDCD1.csd[3], SDCD1.csd[2], SDCD1.csd[1], SDCD1.csd[0]);
|
||||||
|
|
Loading…
Reference in New Issue