aboutsummaryrefslogtreecommitdiff
path: root/mcu
diff options
context:
space:
mode:
Diffstat (limited to 'mcu')
-rw-r--r--mcu/ATmega328P.h3
-rw-r--r--mcu/ATmega32U4.h3
-rw-r--r--mcu/ATmega8A.h3
-rw-r--r--mcu/ATtiny4313.h5
-rw-r--r--mcu/ATtiny85.h1
5 files changed, 13 insertions, 2 deletions
diff --git a/mcu/ATmega328P.h b/mcu/ATmega328P.h
index dc42233..b5527bf 100644
--- a/mcu/ATmega328P.h
+++ b/mcu/ATmega328P.h
@@ -5,6 +5,7 @@
#include <avr/io.h>
// SPI
+#define MCUSUPPORT_SPI
#define DDR_SPI DDRB
#define DD_SS DDB2
#define DD_MOSI DDB3
@@ -15,3 +16,5 @@
#define PORT_MOSI PORTB3
#define PORT_MISO PORTB4
#define PORT_SCLK PORTB5
+// USART
+#define MCUSUPPORT_USART
diff --git a/mcu/ATmega32U4.h b/mcu/ATmega32U4.h
index acf3a24..16351e8 100644
--- a/mcu/ATmega32U4.h
+++ b/mcu/ATmega32U4.h
@@ -4,6 +4,7 @@
#include <avr/io.h>
// SPI
+#define MCUSUPPORT_SPI
#define DDR_SPI DDRB
#define DD_SS DDB0
#define DD_SCLK DDB1
@@ -14,3 +15,5 @@
#define PORT_SCLK PORTB1
#define PORT_MOSI PORTB2
#define PORT_MISO PORTB3
+// USART
+#define MCUSUPPORT_USART0
diff --git a/mcu/ATmega8A.h b/mcu/ATmega8A.h
index 1ded665..a2d3adf 100644
--- a/mcu/ATmega8A.h
+++ b/mcu/ATmega8A.h
@@ -3,6 +3,7 @@
#include <avr/io.h>
// SPI
+#define MCUSUPPORT_SPI
#define DDR_SPI DDRB
#define DD_SS DDB2
#define DD_SCLK DDB5
@@ -13,3 +14,5 @@
#define PORT_SCLK PORTB5
#define PORT_MOSI PORTB3
#define PORT_MISO PORTB4
+// USART
+#define MCUSUPPORT_USART0
diff --git a/mcu/ATtiny4313.h b/mcu/ATtiny4313.h
index 748f6ff..efbc01d 100644
--- a/mcu/ATtiny4313.h
+++ b/mcu/ATtiny4313.h
@@ -4,6 +4,7 @@
#include <avr/io.h>
// SPI USI
+#define MCUSUPPORT_USI
#define DDR_USI DDRB
#define DD_DI DDB5
#define DD_DO DDB6
@@ -12,5 +13,5 @@
#define PORT_DI PORTB5
#define PORT_DO PORTB6
#define PORT_USCK PORTB7
-
-// SPI USART
+// USART
+#define MCUSUPPORT_USART0
diff --git a/mcu/ATtiny85.h b/mcu/ATtiny85.h
index 57f53e7..19db90d 100644
--- a/mcu/ATtiny85.h
+++ b/mcu/ATtiny85.h
@@ -4,6 +4,7 @@
#include <avr/io.h>
// SPI USI
+#define MCUSUPPORT_USI
#define DDR_USI DDRB
#define DD_DI DDB0
#define DD_DO DDB1