Nuvoton / Mbed OS NuMaker-mbed-tickless-example

Files at this revision

API Documentation at this revision

Comitter:
ccli8
Date:
Thu Sep 28 16:24:04 2017 +0800
Parent:
4:da41f0e17d5a
Child:
6:de274e3aed9d
Commit message:
Reduce memory footprint with RTC wake-up

Changed in this revision

wakeup_rtc.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/wakeup_rtc.cpp	Wed Sep 20 14:26:46 2017 +0800
+++ b/wakeup_rtc.cpp	Thu Sep 28 16:24:04 2017 +0800
@@ -35,7 +35,7 @@
 
 void config_rtc_wakeup(void)
 {
-    static Thread thread_rtc;
+    static Thread thread_rtc(osPriorityNormal, 2048);
     
     Callback<void()> callback(&rtc_loop);
     thread_rtc.start(callback);