aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F4xx/SDC
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-01 19:46:22 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-01 19:46:22 +0000
commitdaf9d3018df3064c0b07378caa3ebc16e151d322 (patch)
treead1a94c77ead392a33810347e051381ade65d013 /testhal/STM32F4xx/SDC
parentd406f96c222902ec96a334f517be865dfe2eaf5b (diff)
downloadChibiOS-daf9d3018df3064c0b07378caa3ebc16e151d322.tar.gz
ChibiOS-daf9d3018df3064c0b07378caa3ebc16e151d322.tar.bz2
ChibiOS-daf9d3018df3064c0b07378caa3ebc16e151d322.zip
SDIO. Added some additional debug output in testhal.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4253 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F4xx/SDC')
-rwxr-xr-xtesthal/STM32F4xx/SDC/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/testhal/STM32F4xx/SDC/main.c b/testhal/STM32F4xx/SDC/main.c
index 0e51042ca..d8007a0d8 100755
--- a/testhal/STM32F4xx/SDC/main.c
+++ b/testhal/STM32F4xx/SDC/main.c
@@ -27,7 +27,7 @@
#include "ff.h"
-#define SDC_DATA_DESTRUCTIVE_TEST TRUE
+#define SDC_DATA_DESTRUCTIVE_TEST FALSE
#define SDC_BURST_SIZE 8 /* how many sectors reads at once */
static uint8_t outbuf[MMCSD_BLOCK_SIZE * SDC_BURST_SIZE + 1];
@@ -131,7 +131,12 @@ void cmd_sdiotest(BaseSequentialStream *chp, int argc, char *argv[]){
if (!sdcConnect(&SDCD1)) {
- chprintf(chp, "OK\r\nSingle aligned read...");
+ chprintf(chp, "OK\r\n");
+ chprintf(chp, "*** Card CSD content is: ");
+ chprintf(chp, "%X %X %X %X \r\n", (&SDCD1)->csd[3], (&SDCD1)->csd[2],
+ (&SDCD1)->csd[1], (&SDCD1)->csd[0]);
+
+ chprintf(chp, "Single aligned read...");
chThdSleepMilliseconds(100);
if (sdcRead(&SDCD1, 0, inbuf, 1))
chSysHalt();