Modified for BG96

Fork of mbed-dev by mbed official

Revision:
186:707f6e361f3e
Parent:
180:96ed750bd169
Child:
187:0387e8f68319
--- a/hal/mbed_lp_ticker_api.c	Thu Apr 19 17:12:19 2018 +0100
+++ b/hal/mbed_lp_ticker_api.c	Fri Jun 22 16:45:37 2018 +0100
@@ -15,7 +15,9 @@
  */
 #include "hal/lp_ticker_api.h"
 
-#if DEVICE_LOWPOWERTIMER
+#if DEVICE_LPTICKER
+
+void lp_ticker_set_interrupt_wrapper(timestamp_t timestamp);
 
 static ticker_event_queue_t events = { 0 };
 
@@ -26,7 +28,11 @@
     .read = lp_ticker_read,
     .disable_interrupt = lp_ticker_disable_interrupt,
     .clear_interrupt = lp_ticker_clear_interrupt,
+#if LPTICKER_DELAY_TICKS > 0
+    .set_interrupt = lp_ticker_set_interrupt_wrapper,
+#else
     .set_interrupt = lp_ticker_set_interrupt,
+#endif
     .fire_interrupt = lp_ticker_fire_interrupt,
     .get_info = lp_ticker_get_info,
 };