]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
adding fuses to makefile
authorJan Michel <j.michel@gsi.de>
Mon, 7 Sep 2015 14:34:04 +0000 (16:34 +0200)
committerJan Michel <j.michel@gsi.de>
Mon, 7 Sep 2015 14:34:04 +0000 (16:34 +0200)
powerswitch/Makefile
pt100/Makefile

index 143fc012e74dad39e9f0d74081059c8c2fe0f337..e8ecd3e0be89c41cde1c295da88c9df6b85aa086 100644 (file)
@@ -5,7 +5,7 @@
 # (GNU make, BSD make, SysV make)
 
 
-MCU = attiny441
+MCU = attiny841
 FORMAT = ihex
 TARGET = PowerSwitch
 SRC = $(TARGET).c
@@ -82,7 +82,7 @@ LDFLAGS = $(EXTMEMOPTS) $(LDMAP) $(PRINTF_LIB) $(SCANF_LIB) $(MATH_LIB)
 
 # Programming support using avrdude. Settings and variables.
 
-AVRDUDE_PROGRAMMER = usbtiny
+AVRDUDE_PROGRAMMER = avrispmkII
 AVRDUDE_PORT = usb
 
 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
index 18dfd9675d6b97f413e2689796807ec705a41f6a..d6982181f2fc1be3ed5625d11970486401ee6db8 100644 (file)
@@ -233,3 +233,6 @@ program_bootloader: all
 
 program_arduino: all
        avrdude -patmega32u4 -cavr109 -P$(PORT) -b57600 -D -Uflash:w:$(TARGET).hex:i
+
+fuses:
+       $(AVRDUDE) $(AVRDUDE_FLAGS) -U lfuse:w:0xd6:m -U hfuse:w:0xb1:m -U efuse:w:0xfd:m