cdms_i2c_hardware_test
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of standaloneworkingi2c_cdms by
Diff: cdms_sd.h
- Revision:
- 93:4ca92f9775e0
- Parent:
- 89:bce22b38c440
- Child:
- 96:efde3df6cd94
diff -r 42d6747900cb -r 4ca92f9775e0 cdms_sd.h --- a/cdms_sd.h Mon Jan 25 06:22:29 2016 +0000 +++ b/cdms_sd.h Mon Jan 25 13:10:43 2016 +0000 @@ -269,11 +269,11 @@ // send CMD8 to determine whther it is ver 2.x int r = cmd8(); if (r == R1_IDLE_STATE) { - printf("\rEntering v2\r\n"); +// printf("\rEntering v2\r\n"); return initialise_card_v2(); } else if (r == (R1_IDLE_STATE | R1_ILLEGAL_COMMAND)) { - printf("\rEntering v1\r\n"); +// printf("\rEntering v1\r\n"); return initialise_card_v1(); } else { @@ -287,7 +287,7 @@ for (int i = 0; i < SD_COMMAND_TIMEOUT; i++) { cmd(55, 0); if (cmd(41, 0) == 0) { - printf("\rv1 initialization successfull\r\n"); + gPC.puts("\rv1 initialization successfull\r\n"); cdv = 512; debug_if(SD_DBG, "\n\rInit: SEDCARD_V1\n\r"); @@ -307,7 +307,7 @@ cmd58(); cmd(55, 0); if (cmd(41, 0x40000000) == 0) { - printf("\rv2 initialization successfull\r\n"); +// printf("\rv2 initialization successfull\r\n"); cmd58(); debug_if(SD_DBG, "\n\rInit: SDCARD_V2\n\r"); cdv = 1; @@ -513,7 +513,7 @@ debug("\rSet 512-byte block timed out\r\n"); return 1; } else { - printf("\rDisk initialization successfull\r\n"); +// printf("\rDisk initialization successfull\r\n"); } spi.frequency(1000000); // Set to 1MHz for data transfer