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/ATmega328P.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/ATmega328P.h')
-rw-r--r-- | mcu/ATmega328P.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mcu/ATmega328P.h b/mcu/ATmega328P.h index c26d55d..dc42233 100644 --- a/mcu/ATmega328P.h +++ b/mcu/ATmega328P.h @@ -4,8 +4,14 @@ */ #include <avr/io.h> -#define DDR_SPI DDRB -#define DD_SS DDB2 -#define DD_MOSI DDB3 -#define DD_MISO DDB4 -#define DD_SCLK DDB5 +// SPI +#define DDR_SPI DDRB +#define DD_SS DDB2 +#define DD_MOSI DDB3 +#define DD_MISO DDB4 +#define DD_SCLK DDB5 +#define PORT_SPI PORTB +#define PORT_SS PORTB2 +#define PORT_MOSI PORTB3 +#define PORT_MISO PORTB4 +#define PORT_SCLK PORTB5 |