
CDMS code for testing sbc
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: RESET_functions.h
- Revision:
- 256:642ea552ac77
- Parent:
- 245:da9d1bd999da
--- a/RESET_functions.h Mon Jul 11 12:30:41 2016 +0000 +++ b/RESET_functions.h Mon Jul 11 14:33:02 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(); }