![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
main.cpp@4:666017851052, 2015-08-18 (annotated)
- Committer:
- Mike Fiore
- Date:
- Tue Aug 18 11:21:43 2015 -0500
- Revision:
- 4:666017851052
- Parent:
- 1:e52ae6584f1c
- Child:
- 9:ff62b20f7000
update mdot-firmware to 0.1.2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
4:666017851052 | 1 | #include "mbed.h" |
Mike Fiore |
4:666017851052 | 2 | #include "mDot.h" |
Mike Fiore |
4:666017851052 | 3 | #include "CommandTerminal.h" |
Mike Fiore |
4:666017851052 | 4 | |
Mike Fiore |
4:666017851052 | 5 | Serial debug(USBTX, USBRX); |
Mike Fiore |
4:666017851052 | 6 | |
Mike Fiore |
4:666017851052 | 7 | mts::MTSSerial serial(XBEE_DOUT, XBEE_DIN, 512, 512); |
Mike Fiore |
4:666017851052 | 8 | |
Mike Fiore |
4:666017851052 | 9 | int main() |
Mike Fiore |
4:666017851052 | 10 | { |
Mike Fiore |
4:666017851052 | 11 | debug.baud(115200); |
Mike Fiore |
4:666017851052 | 12 | |
Mike Fiore |
4:666017851052 | 13 | mDot* dot = mDot::getInstance(); |
Mike Fiore |
4:666017851052 | 14 | |
Mike Fiore |
4:666017851052 | 15 | debug.baud(dot->getDebugBaud()); |
Mike Fiore |
4:666017851052 | 16 | serial.baud(dot->getBaud()); |
Mike Fiore |
4:666017851052 | 17 | |
Mike Fiore |
4:666017851052 | 18 | CommandTerminal term(serial, dot); |
Mike Fiore |
4:666017851052 | 19 | |
Mike Fiore |
4:666017851052 | 20 | term.start(); |
Mike Fiore |
1:e52ae6584f1c | 21 | } |