This program test's the serial communication (RS232) for GR-PEACH board at 9600 baud rate. It echo’s the character back on screen for testing the transmit and receive modes.

Dependencies:   mbed

main.cpp

Committer:
ec_rahul46
Date:
2016-09-27
Revision:
0:56614af10008

File content as of revision 0:56614af10008:

//Echo back characters you type

#include "mbed.h"              
 
Serial pc(USBTX, USBRX);
 
int main() {
    pc.printf("Echoes back to the screen anything you type\n");
    while(1) {
        pc.putc(pc.getc());
    }
}