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:
- 207:28a07943dded
- Parent:
- 206:fba4aeebf004
--- a/cdms_rtc.h Thu Jun 30 14:00:33 2016 +0000 +++ b/cdms_rtc.h Sat Jul 02 10:48:30 2016 +0000 @@ -26,12 +26,12 @@ gCS_RTC=1; gCS_RTC=0; spi.write(0x81); //register address with write flag - spi.write(0x80);//enabling stop bit in the seconds register + spi.write(0x80); //enabling stop bit in the seconds register gCS_RTC=1; gCS_RTC=0; spi.write(0x81); - spi.write(0x00);//disabling the stop bit to restart the oscillator + spi.write(0x00); //disabling the stop bit to restart the oscillator gCS_RTC=1; @@ -87,7 +87,7 @@ gCS_RTC=0; spi.write(0x0F); response = (spi.write(0x00))&0x04; - + gCS_RTC=1; gCS_RTC=0; spi.write(0x00); //reading centiseconds register @@ -129,4 +129,5 @@ SPI_mutex.unlock(); return time; -} \ No newline at end of file +} +