Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Diff: cdms_rtc.h
- Revision:
- 207:28a07943dded
- Parent:
- 206:fba4aeebf004
diff -r fba4aeebf004 -r 28a07943dded cdms_rtc.h --- 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 +} +