TWO UARTS

Dependencies:   mbed

Fork of UART by LE KICKASS TEAM

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers rxtx.cpp Source File

rxtx.cpp

00001 #include "mbed.h"
00002  
00003 Serial device(PTC17,PTC16);  // tx, rx
00004 Serial pc(USBTX, USBRX); // tx, rx
00005 
00006 int main() {
00007     device.baud(9600);
00008     while(1){
00009     device.printf("Hello\n");
00010     pc.printf("World\n");
00011     }
00012 }