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_rtc.h
- Revision:
- 282:74a04dec4b95
- Parent:
- 257:7d404e9dc9e2
- Child:
- 297:7cc868888d56
- Child:
- 301:701ac67649b7
--- a/cdms_rtc.h Wed Jul 27 12:14:58 2016 +0000 +++ b/cdms_rtc.h Sat Jul 30 15:25:21 2016 +0000 @@ -1,6 +1,8 @@ void FCTN_CDMS_INIT_RTC() { + if(EN_RTC == 0) + return; wait_ms(4000); SPI_mutex.lock(); gCS_RTC=1; @@ -82,6 +84,8 @@ uint64_t FCTN_CDMS_RD_RTC() { + if(EN_RTC == 0) + return 0; SPI_mutex.lock(); uint8_t response; uint64_t time = 0;