test code for our MBED board

Dependencies:   mbed lwip

serial.c

Committer:
lolpcc
Date:
2010-01-12
Revision:
0:9edfcca7cd25
Child:
1:6877bb99aa17

File content as of revision 0:9edfcca7cd25:

#include "mbed.h"
#include "diags.h"

Serial device(p13, p14);  // tx, rx
/******************************************/
/*                                        */
/*  Test the RS232 interface              */
/*  Should send and recieve data on the   */
/*  serial port, send a string, and get   */
/*  back what is returned from the RX     */
/*                                        */
/******************************************/
void test_rs232(char t)
{
    device.baud(19200);
    device.printf("\n\r");
    device.printf("Sending a test string to the serial port\n\r");
}

void serial_output_string(char *buf)
{
    device.printf(buf);
}