From: Jan Michel Date: Mon, 7 Sep 2015 14:34:04 +0000 (+0200) Subject: adding fuses to makefile X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=16c4d2cb9ea014b306cca9ee791c437648617802;p=avr.git adding fuses to makefile --- diff --git a/powerswitch/Makefile b/powerswitch/Makefile index 143fc01..e8ecd3e 100644 --- a/powerswitch/Makefile +++ b/powerswitch/Makefile @@ -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 diff --git a/pt100/Makefile b/pt100/Makefile index 18dfd96..d698218 100644 --- a/pt100/Makefile +++ b/pt100/Makefile @@ -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