From b688e0f2b949c08bd4af9bc8bba2b3dc75db15ac Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 2 Aug 2011 17:33:48 +0000 Subject: [PATCH] Read 4byte each time from reply register. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4988 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/hsmci_sam3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bertos/cpu/cortex-m3/drv/hsmci_sam3.c b/bertos/cpu/cortex-m3/drv/hsmci_sam3.c index 13b2f136..106b514f 100644 --- a/bertos/cpu/cortex-m3/drv/hsmci_sam3.c +++ b/bertos/cpu/cortex-m3/drv/hsmci_sam3.c @@ -96,8 +96,9 @@ void hsmci_readResp(void *resp, size_t len) ASSERT(resp); uint32_t *r = (uint32_t *)resp; - kprintf("size %d %d\n",(len / sizeof(HSMCI_RSPR)), sizeof(HSMCI_RSPR)); - for (size_t i = 0; i < (len / sizeof(HSMCI_RSPR)); i++) + kprintf("size %d \n", sizeof(HSMCI_RSPR)); + + for (size_t i = 0; i < len ; i++) r[i] = HSMCI_RSPR; } -- 2.25.1