diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-22 13:58:58 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-22 13:58:58 +0100 |
commit | 9447247c1ab0b0a02c5ec87c138135953986975c (patch) | |
tree | 78e1b6a582166ec515bcfc24c2137f7c10c28c96 /mcu/ATtiny85.h | |
parent | 793d2952b42ccc9df627103f600c9fe965a6f993 (diff) | |
download | avr-ioe-9447247c1ab0b0a02c5ec87c138135953986975c.tar.gz avr-ioe-9447247c1ab0b0a02c5ec87c138135953986975c.tar.bz2 avr-ioe-9447247c1ab0b0a02c5ec87c138135953986975c.zip |
mcu definitions change and update
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 |