Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Diff: RESET_functions.h
- Revision:
- 248:407ab7e337cd
- Parent:
- 235:c127b15409b2
diff -r c127b15409b2 -r 407ab7e337cd RESET_functions.h --- a/RESET_functions.h Wed Jul 06 08:09:22 2016 +0000 +++ b/RESET_functions.h Fri Jul 08 12:53:24 2016 +0000 @@ -11,6 +11,7 @@ void RESET_RTC() { + SPI_mutex.lock(); gCS_RTC=1; gCS_RTC=0; spi.write(0x81); //register address with write flag @@ -33,6 +34,7 @@ gCS_RTC=0; spi.write(0x8F); spi.write(0x00); + SPI_mutex.unlock(); }