diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-06-20 11:37:59 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-06-20 11:37:59 +0000 |
commit | 5c37fb51c8e91ea1b5d2ac34d358c82d65ec8ac5 (patch) | |
tree | 5eff5edbbe7fde09d583ca4a7d53d6e97afc142f | |
parent | 3d8180d95a02c876aa9de65a3364fd5de6657bc7 (diff) | |
download | ChibiOS-5c37fb51c8e91ea1b5d2ac34d358c82d65ec8ac5.tar.gz ChibiOS-5c37fb51c8e91ea1b5d2ac34d358c82d65ec8ac5.tar.bz2 ChibiOS-5c37fb51c8e91ea1b5d2ac34d358c82d65ec8ac5.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@320 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | demos/ARM7-LPC214x-GCC/mmcsd.c | 8 | ||||
-rw-r--r-- | readme.txt | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/demos/ARM7-LPC214x-GCC/mmcsd.c b/demos/ARM7-LPC214x-GCC/mmcsd.c index c06123f88..98d377406 100644 --- a/demos/ARM7-LPC214x-GCC/mmcsd.c +++ b/demos/ARM7-LPC214x-GCC/mmcsd.c @@ -253,7 +253,7 @@ bool_t mmcGetSize(MMCCSD *data) { bool_t mmcRead(uint8_t *buf, uint32_t blknum) {
sspAcquireBus();
- sendhdr(CMDREAD, blknum << 8);
+ sendhdr(CMDREAD, blknum << 9);
if (recvr1() != 0x00) {
sspReleaseBus();
return TRUE;
@@ -277,7 +277,7 @@ bool_t mmcReadMultiple(uint8_t *buf, uint32_t blknum, uint32_t n) { static const uint8_t stopcmd[] = {0x40 | CMDSTOP, 0, 0, 0, 0, 1, 0xFF};
sspAcquireBus();
- sendhdr(CMDREADMULTIPLE, blknum << 8);
+ sendhdr(CMDREADMULTIPLE, blknum << 9);
if (recvr1() != 0x00) {
sspReleaseBus();
return TRUE;
@@ -314,7 +314,7 @@ bool_t mmcWrite(uint8_t *buf, uint32_t blknum) { uint8_t b[4];
sspAcquireBus();
- sendhdr(CMDWRITE, blknum << 8);
+ sendhdr(CMDWRITE, blknum << 9);
if (recvr1() != 0x00) {
sspReleaseBus();
return TRUE;
@@ -346,7 +346,7 @@ bool_t mmcWriteMultiple(uint8_t *buf, uint32_t blknum, uint32_t n) { uint8_t b[4];
sspAcquireBus();
- sendhdr(CMDWRITEMULTIPLE, blknum << 8);
+ sendhdr(CMDWRITEMULTIPLE, blknum << 9);
if (recvr1() != 0x00) {
sspReleaseBus();
return TRUE;
diff --git a/readme.txt b/readme.txt index d0497ff24..a31d11985 100644 --- a/readme.txt +++ b/readme.txt @@ -76,6 +76,7 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, *** 0.6.6 ***
- Added the definitions for packed structures to the chtypes.h files.
+- Fixed a problem in the MMC/SD driver in the LPC2148 demo.
*** 0.6.5 ***
- NEW: Web server demo for the AT91SAM7X256, the demo integrates the uIP
|