Fork of original library to fix mbed 5 deprecation warnings
Dependencies: LPC1114_WakeInterruptIn
Fork of WakeUp by
Diff: Device/WakeUp_LPC812.cpp
- Revision:
- 23:884e86933aaa
- Parent:
- 7:bb411115f814
--- a/Device/WakeUp_LPC812.cpp Wed Nov 11 20:20:27 2015 +0000 +++ b/Device/WakeUp_LPC812.cpp Mon Apr 10 13:05:23 2017 +0000 @@ -2,7 +2,7 @@ #include "WakeUp.h" -FunctionPointer WakeUp::callback; +Callback<void()> WakeUp::cbk; float WakeUp::cycles_per_ms = 10.0; void WakeUp::set_ms(uint32_t ms) @@ -49,7 +49,9 @@ //Disable the 10kHz timer LPC_PMU->DPDCTRL &= ~((1<<2) | (1<<3)); - callback.call(); + if (cbk) { + cbk.call(); + } } void WakeUp::calibrate(void)