Fork for Get Started Demo

Dependencies:   DebouncedInterrupt dash7-alp mbed-rtos mbed wizzi-utils

Fork of D7A_Demo_full by WizziLab

Revision:
0:aa25c4c8ddbf
Child:
1:49da0144dd4c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 19 17:25:00 2015 +0000
@@ -0,0 +1,30 @@
+#include "mbed.h"
+#include "rtos.h"
+#include "dbg.h"
+
+int main()
+{
+    //-------------------------------------------//
+    // ----- Debug session over USB Serial ----- //
+    //-------------------------------------------//
+    // Hyperterminal configuration:              //
+    // 115200 bauds, 8-bit data, no parity       //
+    // Linux: 'sudo screen /dev/ttyACMx 115200'  //
+    //    or: 'cat /dev/ttyACMx'                 //
+    // Windows: Use an hyperterminal such as:    //
+    //          - TeraTerm                       //
+    //          - Putty                          //
+    //-------------------------------------------//
+    DBG_OPEN();
+    
+    // Test Debug traces
+    DPRINT("BOOT\r\n");
+    
+    // Set main task to lowest priority
+    osThreadSetPriority(osThreadGetId(), osPriorityIdle);
+    while(true)
+    {
+        // Wait to avoid beeing stuck in loop
+        Thread::wait(osWaitForever);
+    }
+}
\ No newline at end of file