Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
18:204cd747b54a
Parent:
17:358987e9f30e
Child:
19:08862f49cd9e
diff -r 358987e9f30e -r 204cd747b54a main.cpp
--- a/main.cpp	Thu May 21 12:50:43 2020 +0000
+++ b/main.cpp	Thu May 21 22:59:59 2020 +0000
@@ -65,8 +65,14 @@
     printf("Running in SLOW_TIME\n");
     tick.attach(&noise_isr, 1); //extended for debug (1Hz)
 #endif
+#ifdef CSV
+    printf("Running in SLOW_TIME\n");
+    tick.attach_us(&noise_isr, 5000); //extended for debug (1Hz)
+#endif
 #ifndef SLOW_TIME
-    tick.attach_us(&noise_isr, 63); //normal mode SR=20kHz
+#ifndef CSV
+    tick.attach_us(&noise_isr, 63); //normal mode SR=16kHz
+#endif
 #endif
 
     menu.mainmenu(lcd,pad);
@@ -79,7 +85,7 @@
 void noise_isr() {
     #ifdef SLOW_TIME
     if (g_isr_flag==0) {
-    printf("ISR INTTERUPT = 1\n");
+    //printf("ISR INTTERUPT = 1\n");
     }
     #endif
     g_isr_flag=1;