Added Restart(by RESET) function from Standby mode only for some Nucleo boards (STM32 series)

Dependencies:   LPC1114_WakeInterruptIn

Dependents:   Check_StandBy

Fork of WakeUp by Erik -

Example program using "Standby function" for Nucleo series is here.
/users/kenjiArai/code/Check_StandBy/

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Sat Jul 12 19:17:51 2014 +0000
Parent:
5:89dae784c38f
Child:
7:bb411115f814
Commit message:
Added K20D50M support

Changed in this revision

WakeUp_KLxxZ.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;