2010-02-24 14:45:45 -05:00
|
|
|
#include <mc1322x.h>
|
|
|
|
#include <board.h>
|
2010-02-26 14:04:10 -05:00
|
|
|
|
|
|
|
#include "tests.h"
|
2010-02-26 14:22:28 -05:00
|
|
|
#include "config.h"
|
2009-03-30 14:07:42 -04:00
|
|
|
|
|
|
|
void main(void) {
|
2010-02-24 14:45:45 -05:00
|
|
|
|
2009-03-30 15:52:15 -04:00
|
|
|
uint8_t c;
|
2009-03-30 14:07:42 -04:00
|
|
|
while(1) {
|
2010-02-24 14:45:45 -05:00
|
|
|
if(*UART1_CON > 0) {
|
2009-03-30 15:52:15 -04:00
|
|
|
/* Receive buffer isn't empty */
|
|
|
|
/* read a byte and write it to the transmit buffer */
|
2010-02-24 14:45:45 -05:00
|
|
|
c = *UART1_DATA;
|
|
|
|
*UART1_DATA = c;
|
2009-04-04 15:27:08 -04:00
|
|
|
}
|
2010-02-24 14:45:45 -05:00
|
|
|
}
|
|
|
|
|
2009-03-30 14:07:42 -04:00
|
|
|
}
|