aboutsummaryrefslogtreecommitdiff
path: root/mcu/ATtiny85.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-03-14 11:38:29 +0100
committerKarel Kočí <cynerd@email.cz>2015-03-14 11:38:29 +0100
commit082a9165f0aceed31f659a4c2568f8c473e417ef (patch)
tree1019dcacc17e615ac5e28d6064bb4c03d4199dc9 /mcu/ATtiny85.h
parent401d8ce02e0638f96d66b9ac1f0b43219b2d20d2 (diff)
downloadavr-ioe-082a9165f0aceed31f659a4c2568f8c473e417ef.tar.gz
avr-ioe-082a9165f0aceed31f659a4c2568f8c473e417ef.tar.bz2
avr-ioe-082a9165f0aceed31f659a4c2568f8c473e417ef.zip
Add required mcu specifications
Added mcu specification for previous commits.
Diffstat (limited to 'mcu/ATtiny85.h')
-rw-r--r--mcu/ATtiny85.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcu/ATtiny85.h b/mcu/ATtiny85.h
new file mode 100644
index 0000000..9ecbbcc
--- /dev/null
+++ b/mcu/ATtiny85.h
@@ -0,0 +1,11 @@
+/* This is specific configuration for ATtiny85.
+ * This configuration also applies on ATtiny45 and ATtiny25.
+ */
+#include <avr/io.h>
+
+#define USI_DIR_REG DDRB
+#define USI_OUT_REG PORTB
+#define USI_IN_REG PINB
+#define USI_USCK_PIN PORTB2
+#define USI_DO_PIN PORTB1
+#define USI_DI_PIN PORTB0