aboutsummaryrefslogtreecommitdiff
path: root/mcu/ATtiny4313.h
diff options
context:
space:
mode:
Diffstat (limited to 'mcu/ATtiny4313.h')
-rw-r--r--mcu/ATtiny4313.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcu/ATtiny4313.h b/mcu/ATtiny4313.h
new file mode 100644
index 0000000..fca810b
--- /dev/null
+++ b/mcu/ATtiny4313.h
@@ -0,0 +1,11 @@
+/* This is specific configuration for ATtiny4313.
+ * This configuration also applies on ATtiny2313A.
+ */
+#include <avr/io.h>
+
+#define USI_DIR_REG DDRB
+#define USI_OUT_REG PORTB
+#define USI_IN_REG PINB
+#define USI_USCK_PIN PORTB7
+#define USI_DO_PIN PORTB6
+#define USI_DI_PIN PORTB5