Fork for Get Started Demo
Dependencies: DebouncedInterrupt dash7-alp mbed-rtos mbed wizzi-utils
Fork of D7A_Demo_full by
Diff: main.cpp
- Revision:
- 0:aa25c4c8ddbf
- Child:
- 1:49da0144dd4c
diff -r 000000000000 -r aa25c4c8ddbf main.cpp --- /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