Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Diff: cdms_rtc.h
- Revision:
- 240:946a9342a95f
- Parent:
- 224:3ac1f91e0ebc
- Child:
- 255:642ea552ac77
diff -r a3a012a0fecc -r 946a9342a95f cdms_rtc.h --- a/cdms_rtc.h Thu Jul 07 17:25:37 2016 +0000 +++ b/cdms_rtc.h Thu Jul 07 18:43:12 2016 +0000 @@ -40,22 +40,22 @@ gCS_RTC=0; spi.write(0x80); - spi.write(0x01); // set milliseconds value to 00 + spi.write(0x00); // set milliseconds value to 00 gCS_RTC=1; gCS_RTC=0; spi.write(0x81); - spi.write(0x01); //set seconds value to 00 + spi.write(0x00); //set seconds value to 00 gCS_RTC=1; gCS_RTC=0; spi.write(0x82); - spi.write(0x01);//set minutes value to 00 + spi.write(0x00);//set minutes value to 00 gCS_RTC=1; gCS_RTC=0; spi.write(0x83); - spi.write(0x23); //set the hours to 01 + spi.write(0x00); //set the hours to 01 gCS_RTC=1; gCS_RTC=0; @@ -65,17 +65,17 @@ gCS_RTC=0; spi.write(0x85); - spi.write(0x31); //set date of the month to 01 + spi.write(0x01); //set date of the month to 01 gCS_RTC=1; gCS_RTC=0; spi.write(0x86); - spi.write(0x12); //set month to 01 + spi.write(0x01); //set month to 01 gCS_RTC=1; gCS_RTC=0; spi.write(0x87); - spi.write(0x01); //set year to 00(2000) + spi.write(0x00); //set year to 00(2000) gCS_RTC=1; gPC.puts("\n\r rtc initalised \n"); SPI_mutex.unlock();