Fork of original library to fix mbed 5 deprecation warnings

Dependencies:   LPC1114_WakeInterruptIn

Dependents:   low-power-sleep

Fork of WakeUp by Erik -

Revision:
23:884e86933aaa
Parent:
20:68f2ee917691
--- a/Device/WakeUp_STM_RTC.cpp	Wed Nov 11 20:20:27 2015 +0000
+++ b/Device/WakeUp_STM_RTC.cpp	Mon Apr 10 13:05:23 2017 +0000
@@ -26,7 +26,7 @@
 //Disabling the Backup Powerdomain does not seem to work nicely anymore if you want to use other RTC functions afterwards.
 //For now I have disabled it in code, if you find WakeUp increases your powerconsumption, try enabling it again (code is still there, just commented)
 
-FunctionPointer WakeUp::callback;
+Callback<void()> WakeUp::cbk;
 
 void WakeUp::set_ms(uint32_t ms)
 {        
@@ -114,7 +114,9 @@
     RTC->WPR = 0xFF;        //Enable RTC write protection
     EXTI->PR = RTC_EXTI_LINE_ALARM_EVENT;
     //PWR->CR &= ~PWR_CR_DBP;     //Disable power domain 
-    callback.call();
+    if (cbk) {
+        cbk.call();
+    }
 }
 
 void WakeUp::calibrate(void)