Fork for Get Started Demo
Dependencies: DebouncedInterrupt dash7-alp mbed-rtos mbed wizzi-utils
Fork of D7A_Demo_full by
main.cpp
- Committer:
- Jeej
- Date:
- 2015-11-19
- Revision:
- 0:aa25c4c8ddbf
- Child:
- 1:49da0144dd4c
File content as of revision 0:aa25c4c8ddbf:
#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); } }