2010-02-24 20:45:45 +01:00
|
|
|
#include <mc1322x.h>
|
|
|
|
#include <board.h>
|
2010-02-26 20:04:10 +01:00
|
|
|
|
|
|
|
#include "tests.h"
|
2010-02-26 20:22:28 +01:00
|
|
|
#include "config.h"
|
2009-03-30 20:07:42 +02:00
|
|
|
|
|
|
|
void main(void) {
|
2010-03-02 22:08:36 +01:00
|
|
|
|
2010-03-10 00:23:40 +01:00
|
|
|
uart1_init(INC,MOD,SAMP);
|
2010-02-24 20:45:45 +01:00
|
|
|
|
2009-03-30 20:07:42 +02:00
|
|
|
while(1) {
|
2010-03-10 00:23:40 +01:00
|
|
|
if(uart1_can_get()) {
|
2009-03-30 21:52:15 +02:00
|
|
|
/* Receive buffer isn't empty */
|
|
|
|
/* read a byte and write it to the transmit buffer */
|
2010-03-10 00:23:40 +01:00
|
|
|
uart1_putc(uart1_getc());
|
2009-04-04 21:27:08 +02:00
|
|
|
}
|
2010-02-24 20:45:45 +01:00
|
|
|
}
|
|
|
|
|
2009-03-30 20:07:42 +02:00
|
|
|
}
|