aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx
diff options
context:
space:
mode:
authorUladzimir Pylinski <barthess@yandex.ru>2015-02-19 17:42:12 +0000
committerUladzimir Pylinski <barthess@yandex.ru>2015-02-19 17:42:12 +0000
commit20551e0172314fabfbf2889bbbfb4b2d62c39d9c (patch)
tree683d78fa49152ea19a55e160f3061189759b7579 /testhal/STM32/STM32F4xx
parentd5307c5e08bf00d85c04917aafb5e2f58d56b1e5 (diff)
downloadChibiOS-20551e0172314fabfbf2889bbbfb4b2d62c39d9c.tar.gz
ChibiOS-20551e0172314fabfbf2889bbbfb4b2d62c39d9c.tar.bz2
ChibiOS-20551e0172314fabfbf2889bbbfb4b2d62c39d9c.zip
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
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r--testhal/STM32/STM32F4xx/SDC/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F4xx/SDC/main.c b/testhal/STM32/STM32F4xx/SDC/main.c
index 0ab63ed26..60b6a75eb 100644
--- a/testhal/STM32/STM32F4xx/SDC/main.c
+++ b/testhal/STM32/STM32F4xx/SDC/main.c
@@ -23,11 +23,16 @@
#include "shell.h"
/*
+ * Working area for driver.
+ */
+static uint8_t sd_scratchpad[512];
+
+/*
* SDIO configuration.
*/
static const SDCConfig sdccfg = {
SDC_MODE_4BIT,
- NULL
+ sd_scratchpad
};
/*
@@ -50,7 +55,7 @@ static msg_t Thread1(void *arg) {
/* 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
@@ -80,6 +85,7 @@ void cmd_sdc(BaseSequentialStream *chp, int argc, char *argv[]) {
chprintf(chp, "failed\r\n");
return;
}
+
chprintf(chp, "OK\r\n\r\nCard Info\r\n");
chprintf(chp, "CSD : %08X %8X %08X %08X \r\n",
SDCD1.csd[3], SDCD1.csd[2], SDCD1.csd[1], SDCD1.csd[0]);