Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP SimpleDMA eeprom mbed-rtos mbed
Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by
Diff: cdms_sd.h
- Revision:
- 303:b49b486a7107
- Parent:
- 295:699801854b71
- Child:
- 304:7cc4fe191a54
--- a/cdms_sd.h Sun Sep 04 11:12:00 2016 +0000
+++ b/cdms_sd.h Mon Sep 05 11:25:33 2016 +0000
@@ -30,7 +30,7 @@
uint32_t SD_HK_ARCH_LAST= 5000;
uint32_t LOG_FIRST =5001;
uint32_t LOG_LAST=6000;
-uint32_t SD_MNG_SECT=7000;
+uint32_t SD_MNG_SECT=8000;
extern uint8_t SD_INIT_FLAGS;
@@ -647,6 +647,7 @@
{
// set write address for single block (CMD24)
if (cmd(24, block_number * cdv) != 0) {
+ CDMS_WR_SD_FAULT_COUNTER++;
return 1;
}
@@ -679,6 +680,7 @@
if ((spi.write(0xFF) & 0x1F) != 0x05) {
cs_sd = 1;
spi.write(0xFF);
+ CDMS_WR_SD_FAULT_COUNTER++;
return 1;
}
