initial commit, compiles for ATTINY84 with TX on PA5 and RX on PA6
This commit is contained in:
18
suart.h
Normal file
18
suart.h
Normal 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_ */
|
||||
Reference in New Issue
Block a user