publishing to check changes in cdms code

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA_flag by samp Srinivasan

Revision:
248:407ab7e337cd
Parent:
235:c127b15409b2
--- 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();
 }