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

18
suart.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef _UART_H_
#define _UART_H_
#define SUART_TXD
#define SUART_RXD
extern void uart_init();
#ifdef SUART_TXD
extern void uart_putc (const char);
#endif // SUART_RXD
#ifdef SUART_RXD
extern int uart_getc_wait ();
extern int uart_getc_nowait();
#endif // SUART_RXD
#endif /* _UART_H_ */