From 16c4d2cb9ea014b306cca9ee791c437648617802 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 7 Sep 2015 16:34:04 +0200 Subject: [PATCH] adding fuses to makefile --- powerswitch/Makefile | 4 ++-- pt100/Makefile | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.43.0