SilentSensors / mbed-dev

Fork of mbed-dev by mbed official

Revision:
186:707f6e361f3e
Parent:
174:b96e65c34a4d
diff -r 08ed48f1de7f -r 707f6e361f3e targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c	Thu Apr 19 17:12:19 2018 +0100
+++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c	Fri Jun 22 16:45:37 2018 +0100
@@ -41,6 +41,9 @@
  * if the alarm occurs upon a Counter increment condition.
  *
  */
+
+#ifdef DEVICE_RTC
+
 #include "rtc.h"
 #include "mbed_assert.h"
 #include "lp_ticker_api.h"
@@ -300,3 +303,5 @@
         return False;
     }
 }
+
+#endif