aboutsummaryrefslogtreecommitdiff
path: root/mcu/ATmega328P.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-03-22 13:58:58 +0100
committerKarel Kočí <cynerd@email.cz>2015-03-22 13:58:58 +0100
commit9447247c1ab0b0a02c5ec87c138135953986975c (patch)
tree78e1b6a582166ec515bcfc24c2137f7c10c28c96 /mcu/ATmega328P.h
parent793d2952b42ccc9df627103f600c9fe965a6f993 (diff)
downloadavr-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.h16
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