Flotsam / Wakeup

Dependents:   Full-Project

Fork of WakeUp by Erik -

Revision:
6:815bef56e136
Parent:
5:89dae784c38f
diff -r 89dae784c38f -r 815bef56e136 WakeUp_KLxxZ.cpp
--- a/WakeUp_KLxxZ.cpp	Thu Feb 20 18:12:42 2014 +0000
+++ b/WakeUp_KLxxZ.cpp	Sat Jul 12 19:17:51 2014 +0000
@@ -1,4 +1,4 @@
-#if defined TARGET_KLXX
+#if defined(TARGET_KLXX) || defined(TARGET_K20D50M)
 
 #include "WakeUp.h"
 #include "us_ticker_api.h"
@@ -15,7 +15,7 @@
 void WakeUp::set_ms(uint32_t ms)
 {
     /* Clock the timer */
-    SIM->SCGC5 |= SIM_SCGC5_LPTMR_MASK;
+    SIM->SCGC5 |= 0x1u;
     
     //Check if it is running, in that case, store current values
     remainder_count = 0;