diff options
Diffstat (limited to 'mcu/ATtiny85.h')
-rw-r--r-- | mcu/ATtiny85.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mcu/ATtiny85.h b/mcu/ATtiny85.h index 9ecbbcc..57f53e7 100644 --- a/mcu/ATtiny85.h +++ b/mcu/ATtiny85.h @@ -3,9 +3,12 @@ */ #include <avr/io.h> -#define USI_DIR_REG DDRB -#define USI_OUT_REG PORTB -#define USI_IN_REG PINB -#define USI_USCK_PIN PORTB2 -#define USI_DO_PIN PORTB1 -#define USI_DI_PIN PORTB0 +// SPI USI +#define DDR_USI DDRB +#define DD_DI DDB0 +#define DD_DO DDB1 +#define DD_USCK DDB2 +#define PORT_USI PORTB +#define PORT_DI PORTB0 +#define PORT_DO PORTB1 +#define PORT_USCK PORTB2 |