Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WakeUp by
Diff: WakeUp_KLxxZ.cpp
- 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;
