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
This commit is contained in:
parent
693682c44a
commit
e0f0d6da6a
|
@ -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
|
||||
-------------------
|
||||
|
|
Loading…
Reference in New Issue