To fix the hang problem
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: cdms_sd.h
- Revision:
- 304:7cc4fe191a54
- Parent:
- 303:b49b486a7107
- Child:
- 308:7c3872365d58
--- a/cdms_sd.h Mon Sep 05 11:25:33 2016 +0000 +++ b/cdms_sd.h Sat Sep 10 05:10:06 2016 +0000 @@ -262,7 +262,7 @@ int SD_WRITE(uint8_t* buffer,uint32_t fsc,uint8_t sid) { - uint32_t block_number; + /*uint32_t block_number; int result = 10; if(SD_STATUS == DEVICE_POWERED){ if(sid==0x01) @@ -325,13 +325,13 @@ } return result; } - } + }*/ return 1; } uint8_t SD_READ(uint8_t* buffer,uint32_t fsc,uint8_t sid) { - FCTN_SD_MNGR(); + /*FCTN_SD_MNGR(); uint32_t block_number; int result; //if(SD_SW_EN_DS == 1) @@ -383,7 +383,8 @@ if(result == 0) return 0xA0; else - return 0x88; + return 0x88;*/ + return 0xA0; }