uses to rtos to send run signals to update threads. there are 5 rtos timers - 2 single shots and 3 periodic.

Dependencies:   TextLCD mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
xueliz
Date:
Wed Oct 08 23:48:31 2014 +0000
Parent:
0:6cf7cd633acf
Commit message:
final version!

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 08 22:02:59 2014 +0000
+++ b/main.cpp	Wed Oct 08 23:48:31 2014 +0000
@@ -87,8 +87,8 @@
         // pause
         if (input == 'p' && run_status) {
             run_status = 0;
-            ss_wait = ss_wait - 100*mm[1] - 10*mm[0];
-            MM_wait = MM_wait - 10000*ss[1] - 1000*ss[0] - 100*mm[1] - 10*mm[0];
+            ss_wait = 1000 - 100*mm[1] - 10*mm[0];
+            MM_wait = 60000 - 10000*ss[1] - 1000*ss[0] - 100*mm[1] - 10*mm[0];
             disp_signal->stop();
             mm_signal->stop();
             ss_init->stop();