mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-26 04:32:02 +00:00
20 lines
292 B
C
20 lines
292 B
C
#include <mc1322x.h>
|
|
#include <board.h>
|
|
|
|
#include "tests.h"
|
|
#include "config.h"
|
|
|
|
void main(void) {
|
|
|
|
uint8_t c;
|
|
while(1) {
|
|
if(*UART1_CON > 0) {
|
|
/* Receive buffer isn't empty */
|
|
/* read a byte and write it to the transmit buffer */
|
|
c = *UART1_DATA;
|
|
*UART1_DATA = c;
|
|
}
|
|
}
|
|
|
|
}
|