Alexandre Salconi-Denis / Mbed 2 deprecated ProjetOctopode

Dependencies:   debug mbed

Files at this revision

API Documentation at this revision

Comitter:
salco
Date:
Mon Aug 31 13:59:34 2015 +0000
Parent:
31:ed23647fd16e
Child:
33:c8b4e5a392e6
Commit message:
Modifier l"init pour metre les bon type de class;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
settingDebug.h Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Aug 31 13:36:39 2015 +0000
+++ b/main.cpp	Mon Aug 31 13:59:34 2015 +0000
@@ -44,7 +44,7 @@
     //#ifdef DBG_MAIN_INIT
     //debug("\n\rInit taskAlerte ...");
     //#endif
-    // TTaskCritique taskAlerte(20);// un-use because i dont know what to do with.
+    // TTaskAlerte taskAlerte(20);// un-use because i dont know what to do with.
     //#ifdef DBG_MAIN_INIT 
     //debug(" end");
     //#endif
@@ -52,7 +52,7 @@
     #ifdef DBG_MAIN_INIT
     debug("\n\rInit taskGeneral ...");
     #endif
-     TTaskCritique taskGeneral(20);
+     TTaskGeneral taskGeneral(20);
     #ifdef DBG_MAIN_INIT 
     debug(" end");
     #endif
@@ -61,19 +61,41 @@
 
     while(1) {
      
-    
 
         #if taskCritique
+            #ifdef DBG_MAIN_FLAG
+            debug("/n/r IN taskCritique");
+            #endif
+        
         taskCritique.exec();
+        
+            #ifdef DBG_MAIN_FLAG
+            debug("  Out taskCritique");
+            #endif
         #endif
         
         #if taskAlerte
+            #ifdef DBG_MAIN_FLAG
+            debug("/n/r IN taskAlerte");
+            #endif
+            
         taskAlerte.exec();
+        
+            #ifdef DBG_MAIN_FLAG
+            debug("  Out taskAlerte");
+            #endif        
         #endif
         
         #if taskGeneral
+            #ifdef DBG_MAIN_FLAG
+            debug("/n/r IN taskGeneral");
+            #endif
+            
         taskGeneral.exec();
-        
+
+            #ifdef DBG_MAIN_FLAG
+            debug("  Out taskGeneral");
+            #endif          
         #endif
         
         /*if (mybutton == 0) { // Button is pressed
--- a/settingDebug.h	Mon Aug 31 13:36:39 2015 +0000
+++ b/settingDebug.h	Mon Aug 31 13:59:34 2015 +0000
@@ -6,6 +6,8 @@
 
 #define DEBUG_BOOT_GRAPHICAL_INTERFACE // enable ANSI interface to view all process 
 
+#define DBG_MAIN_FLAG //Show Flag trought each process
+
 #define DEBUG_TASKCRITT 1
     #define DGB_FORCE_INIT // use to brute force all patche to avoid bad reset.