diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-26 12:46:43 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-26 12:46:43 +0000 |
commit | 318c354f149558a9f51fe40fc0be61deb2055e8e (patch) | |
tree | ad7ff5d0991be601722c2db99bc3205ea43f1c7c | |
parent | 191a1672e2f44f9d28d0bbf9d56ed4a22efec0a1 (diff) | |
download | ChibiOS-318c354f149558a9f51fe40fc0be61deb2055e8e.tar.gz ChibiOS-318c354f149558a9f51fe40fc0be61deb2055e8e.tar.bz2 ChibiOS-318c354f149558a9f51fe40fc0be61deb2055e8e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6318 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32/sdc_lld.h | 2 | ||||
-rw-r--r-- | testhal/STM32F4xx/SDC/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/sdc_lld.h b/os/hal/ports/STM32/sdc_lld.h index 9db4160dd..f4a44d18c 100644 --- a/os/hal/ports/STM32/sdc_lld.h +++ b/os/hal/ports/STM32/sdc_lld.h @@ -259,11 +259,11 @@ struct SDCDriver { * @brief Transmit DMA channel.
*/
const stm32_dma_stream_t *dma;
+#if CH_DBG_ENABLE_ASSERTS || defined(__DOXYGEN__)
/**
* @brief Pointer to the SDIO registers block.
* @note Used only for dubugging purpose.
*/
-#if CH_DBG_ENABLE_ASSERTS
SDIO_TypeDef *sdio;
#endif
};
diff --git a/testhal/STM32F4xx/SDC/main.c b/testhal/STM32F4xx/SDC/main.c index f547f65e8..3a049234a 100644 --- a/testhal/STM32F4xx/SDC/main.c +++ b/testhal/STM32F4xx/SDC/main.c @@ -99,7 +99,7 @@ void cmd_sdc(BaseSequentialStream *chp, int argc, char *argv[]) { end = start + MS2ST(1000);
n = 0;
do {
- if (blkRead(&SDCD1, startblk, buf, MMCSD_BLOCK_SIZE)) {
+ if (blkRead(&SDCD1, startblk, buf, 1)) {
chprintf(chp, "failed\r\n");
break;
}
|