2010-02-24 19:45:45 +00:00
|
|
|
#include <mc1322x.h>
|
|
|
|
#include <board.h>
|
2010-02-26 19:04:10 +00:00
|
|
|
|
|
|
|
#include "tests.h"
|
2009-03-30 18:07:42 +00:00
|
|
|
|
2010-02-24 19:45:45 +00:00
|
|
|
/* INC = 767; MOD = 9999 works: 115200 @ 24 MHz 16 bit sample */
|
|
|
|
#define INC 767
|
|
|
|
#define MOD 9999
|
2009-03-30 18:07:42 +00:00
|
|
|
|
|
|
|
void main(void) {
|
2010-02-24 19:45:45 +00:00
|
|
|
|
2009-03-30 19:52:15 +00:00
|
|
|
uint8_t c;
|
2009-03-30 18:07:42 +00:00
|
|
|
while(1) {
|
2010-02-24 19:45:45 +00:00
|
|
|
if(*UART1_CON > 0) {
|
2009-03-30 19:52:15 +00:00
|
|
|
/* Receive buffer isn't empty */
|
|
|
|
/* read a byte and write it to the transmit buffer */
|
2010-02-24 19:45:45 +00:00
|
|
|
c = *UART1_DATA;
|
|
|
|
*UART1_DATA = c;
|
2009-04-04 19:27:08 +00:00
|
|
|
}
|
2010-02-24 19:45:45 +00:00
|
|
|
}
|
|
|
|
|
2009-03-30 18:07:42 +00:00
|
|
|
}
|