trennfix/sw: Register variables, restructuring, whatever
[eisenbahn.git] / trennfix / sw / mk / trennfix_attiny85.mk
diff --git a/trennfix/sw/mk/trennfix_attiny85.mk b/trennfix/sw/mk/trennfix_attiny85.mk
new file mode 100644 (file)
index 0000000..fe044a8
--- /dev/null
@@ -0,0 +1,41 @@
+
+SRC = src/main.c
+
+
+################################################################################
+################################################################################
+
+AVRDUDE_PROGRAMMER = avrisp2
+MCU=attiny85
+F_CPU = 16000000
+
+# Fuse-Bits gibts praktisch bei http://www.engbedded.com/fusecalc !
+# 8 MHz interner RC-Oszillator usw. Brown out 4V
+
+
+#LFUSE=0x61
+#HFUSE=0xdc
+#EFUSE=0xff
+
+LFUSE=0x61
+
+ifneq ($(KEEP_EEPROM),)
+
+HFUSE=0xd4
+
+else
+
+HFUSE=0xdc
+
+endif
+
+EFUSE=0xff
+
+
+
+
+
+
+
+
+