提交 e0f0d6da 编写于 作者: qiuyiuestc's avatar qiuyiuestc

fix data order problem of sdcard driver.

fix filesystem byte alignment problem. 

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@290 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 693682c4
......@@ -362,7 +362,7 @@ RERDCMD:
status = SDIFSTA;
if((status & 0x1000) == 0x1000)
{
#if 0
#if 1
register rt_uint32_t value;
value = SDIDAT;
......@@ -372,8 +372,9 @@ RERDCMD:
buf[1] = (value >> 16) & 0xff;
buf[2] = (value >> 8) & 0xff;
buf[3] = value & 0xff;
#endif
#else
*(rt_uint32_t *)buf = SDIDAT;
#endif
rd_cnt++;
buf += 4;
}
......
......@@ -46,7 +46,7 @@
* but it will work for sure.
*/
#define BYTE_ALIGNMENT
/* #define BYTE_ALIGNMENT */
/* Cache configuration
-------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册