aboutsummaryrefslogtreecommitdiff
path: root/include/mcu/atmega32u4.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-03-08 16:10:33 +0100
committerKarel Kočí <cynerd@email.cz>2016-03-08 16:10:33 +0100
commit5d29fe79d30f430ae326d9dc57ccfaed6fe61328 (patch)
tree8341804d561c0060176cbebc3f9a57c7c07f7816 /include/mcu/atmega32u4.h
parent4e773191d447ac434536262a6f204dd991d4ad77 (diff)
downloadavr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.gz
avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.bz2
avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.zip
Another full update of current work
Diffstat (limited to 'include/mcu/atmega32u4.h')
-rw-r--r--include/mcu/atmega32u4.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/mcu/atmega32u4.h b/include/mcu/atmega32u4.h
new file mode 100644
index 0000000..16351e8
--- /dev/null
+++ b/include/mcu/atmega32u4.h
@@ -0,0 +1,19 @@
+/* This is specific configuration for ATmega32U4.
+ * This configuration also applies on ATmega16U4.
+ */
+#include <avr/io.h>
+
+// SPI
+#define MCUSUPPORT_SPI
+#define DDR_SPI DDRB
+#define DD_SS DDB0
+#define DD_SCLK DDB1
+#define DD_MOSI DDB2
+#define DD_MISO DDB3
+#define PORT_SPI PORTB
+#define PORT_SS PORTB0
+#define PORT_SCLK PORTB1
+#define PORT_MOSI PORTB2
+#define PORT_MISO PORTB3
+// USART
+#define MCUSUPPORT_USART0