CDMS_CODE_samp_23SEP_DMA_flag

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA by iitm sat

Revision:
289:9bd62b69874c
Parent:
257:7d404e9dc9e2
Child:
297:7cc868888d56
Child:
301:701ac67649b7
--- a/cdms_rtc.h	Fri Aug 05 17:13:23 2016 +0000
+++ b/cdms_rtc.h	Sat Aug 06 06:34:38 2016 +0000
@@ -1,6 +1,8 @@
 
 void FCTN_CDMS_INIT_RTC()
 {   
+    if(EN_RTC == 0)
+    return;
     wait_ms(4000);
     SPI_mutex.lock();
     gCS_RTC=1;
@@ -82,6 +84,8 @@
  
 uint64_t FCTN_CDMS_RD_RTC()
 {   
+    if(EN_RTC == 0)
+    return 0;
     SPI_mutex.lock(); 
     uint8_t response;
     uint64_t time = 0;