diff options
Diffstat (limited to 'src/app/Makefile')
-rw-r--r-- | src/app/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/app/Makefile b/src/app/Makefile index 8fe6809..a5f71de 100644 --- a/src/app/Makefile +++ b/src/app/Makefile @@ -13,10 +13,8 @@ PROG = dragon_isp PART=attiny25 AVRDUDE_PART=t25 -# Cpu frequency -# is 3.579545MHz / 8 = 447443.125 -#F_CPU=447443UL -F_CPU="(3579545UL/8)" +# Cpu frequency, internal RC at 8MHz, divide by 8 enabled +F_CPU="1000000UL" # Directory for built objects BUILD_DIR=build @@ -46,7 +44,7 @@ vpath %.elf ./$(BUILD_DIR) vpath %.hex ./$(BUILD_DIR) # GCC flags -CFLAGS=-g -mmcu=$(PART) -O1 -Wall -Werror -DF_CPU=$(F_CPU) +CFLAGS=-g -mmcu=$(PART) -Os -Wall -Werror -DF_CPU=$(F_CPU) INCLUDES=-I. -I$(LIB_DIR) @@ -98,7 +96,7 @@ program: $(APP_HEX) $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U flash:w:$(BUILD_DIR)/$(APP_HEX) -v fuse: - $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U lfuse:w:0x60:m -U hfuse:w:0xdc:m -U efuse:w:0xff:m -v + $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -v interactive: $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -t -v |