mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
fecb5e7bdb
Contributed by Clive Stubbings.
20 lines
298 B
C
20 lines
298 B
C
#include <mc1322x.h>
|
|
#include <board.h>
|
|
|
|
#include "tests.h"
|
|
#include "config.h"
|
|
|
|
void main(void) {
|
|
|
|
uart1_init(INC,MOD,SAMP);
|
|
|
|
while(1) {
|
|
if(uart1_can_get()) {
|
|
/* Receive buffer isn't empty */
|
|
/* read a byte and write it to the transmit buffer */
|
|
uart1_putc(uart1_getc());
|
|
}
|
|
}
|
|
|
|
}
|