Simple Serial Echo program for the LandTiger Board, using COM2 port/connector

Dependencies:   mbed

Committer:
alex_G_blanco
Date:
Sat Mar 05 02:08:51 2016 +0000
Revision:
0:498d68e9665f
Simple serial RS232 echo program for the LandTiger Board. Uses COM2 connector

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alex_G_blanco 0:498d68e9665f 1 #include "mbed.h"
alex_G_blanco 0:498d68e9665f 2
alex_G_blanco 0:498d68e9665f 3 //Serial echo for the LandTiger board
alex_G_blanco 0:498d68e9665f 4 Serial pc(P0_10, P0_11); //tx, rx pins for the Landtiger, COM2 UART2 connector
alex_G_blanco 0:498d68e9665f 5
alex_G_blanco 0:498d68e9665f 6 int main() {
alex_G_blanco 0:498d68e9665f 7 pc.printf("hello world\n");
alex_G_blanco 0:498d68e9665f 8 while(1) {
alex_G_blanco 0:498d68e9665f 9 pc.putc(pc.getc()); //character echo
alex_G_blanco 0:498d68e9665f 10 }
alex_G_blanco 0:498d68e9665f 11 }