git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6318 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
191a1672e2
commit
318c354f14
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue