initial commit, compiles for ATTINY84 with TX on PA5 and RX on PA6

This commit is contained in:
juraj
2020-02-21 20:48:19 +01:00
commit 95ccf534a4
7 changed files with 400 additions and 0 deletions

22
main.c Normal file
View File

@@ -0,0 +1,22 @@
#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);
}
}