Create a UART to USB Serial bridge with the DipCortex
Fork of DipCortex-USB-CDC by
Revision 2:ec470dd97c6e, committed 2014-01-30
- Comitter:
- SolderSplashLabs
- Date:
- Thu Jan 30 21:33:45 2014 +0000
- Parent:
- 1:b9eededaba19
- Child:
- 3:5fffa4cb4ca1
- Commit message:
- Switch RX and TX pins to use port name and pin
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Nov 01 08:27:31 2013 +0000 +++ b/main.cpp Thu Jan 30 21:33:45 2014 +0000 @@ -5,8 +5,9 @@ #include "mbed.h" #include "USBSerial.h" -//Serial uart(USBTX, USBRX); -Serial uart(p19, p20); +// Serial TX Pin19, Serial RX Pin20 +// Using port and pin names as the mbed definitions pin defs for the M0 are incorrect +Serial uart(P1_13, P1_14); USBSerial pc; // Called by ISR