aboutsummaryrefslogtreecommitdiff
path: root/mcu/ATmega32U4.h
diff options
context:
space:
mode:
Diffstat (limited to 'mcu/ATmega32U4.h')
-rw-r--r--mcu/ATmega32U4.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/mcu/ATmega32U4.h b/mcu/ATmega32U4.h
new file mode 100644
index 0000000..204dce4
--- /dev/null
+++ b/mcu/ATmega32U4.h
@@ -0,0 +1,10 @@
+/* This is specific configuration for ATmega32U4.
+ * This configuration also applies on ATmega16U4.
+ */
+#include <avr/io.h>
+
+#define DDR_SPI DDRB
+#define DD_SS DDB0
+#define DD_MOSI DDB2
+#define DD_MISO DDB3
+#define DD_SCLK DDB5