Browse Source

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

qiuyiuestc 15 years ago
parent
commit
e0f0d6da6a
2 changed files with 4 additions and 3 deletions
  1. 3 2
      bsp/mini2440/sdcard.c
  2. 1 1
      filesystem/dfs/filesystems/efsl/src/include/config.h

+ 3 - 2
bsp/mini2440/sdcard.c

@@ -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;
 		}

+ 1 - 1
filesystem/dfs/filesystems/efsl/src/include/config.h

@@ -46,7 +46,7 @@
  * but it will work for sure.
 */
 
-#define BYTE_ALIGNMENT
+/* #define BYTE_ALIGNMENT */
 
 /* Cache configuration
    -------------------