AT terminal for the mDot using the USB debug port instead of the serial port.
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
mts_at_debug.h@18:f5d28d621bb0, 2018-03-02 (annotated)
- Committer:
- pferland
- Date:
- Fri Mar 02 20:01:38 2018 +0000
- Revision:
- 18:f5d28d621bb0
- Parent:
- 14:f9a77400b622
Added ability to force the AT terminal to use the USB debug port
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
14:f9a77400b622 | 1 | #include "mbed.h" |
Mike Fiore |
14:f9a77400b622 | 2 | #include <stdio.h> |
Mike Fiore |
14:f9a77400b622 | 3 | |
Mike Fiore |
14:f9a77400b622 | 4 | // enable to turn on debug prints and AT commands |
Mike Fiore |
14:f9a77400b622 | 5 | // #define DEBUG_MAC 1 |
Mike Fiore |
14:f9a77400b622 | 6 | |
Mike Fiore |
14:f9a77400b622 | 7 | #ifdef DEBUG_MAC |
Mike Fiore |
14:f9a77400b622 | 8 | #define MTS_RADIO_DEBUG_COMMANDS 1 |
Mike Fiore |
14:f9a77400b622 | 9 | #define DEBUG_PRINTF(fmt, args...) printf("%s:%d: "fmt, __FUNCTION__, __LINE__, ## args) |
Mike Fiore |
14:f9a77400b622 | 10 | #else |
Mike Fiore |
14:f9a77400b622 | 11 | #define DEBUG_PRINTF(fmt, args...) |
Mike Fiore |
14:f9a77400b622 | 12 | #endif |