22 lines
331 B
C
22 lines
331 B
C
#define SUART_TXD
|
|
#define SUART_RXD
|
|
|
|
#include <avr/interrupt.h>
|
|
#include "suart.h"
|
|
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
sei();
|
|
uart_init();
|
|
char c;
|
|
|
|
// not there yet, for now only echo
|
|
// uart_puts("Hello Parrot!\n");
|
|
|
|
while (1) {
|
|
c = uart_getc_wait();
|
|
uart_putc(c);
|
|
}
|
|
} |