diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-04-27 13:27:43 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-04-27 13:27:43 +0200 |
commit | 9a240ddaa21efaa333d2d45a73fe2af9f60a1437 (patch) | |
tree | cb841aa73e59b76a976a042f88564f0ee52490b1 /src/app/Makefile | |
parent | d3e1a66f9351b1f8ef094bb231afe83707fbef9e (diff) | |
download | ADF4002_27MHz_PLL-9a240ddaa21efaa333d2d45a73fe2af9f60a1437.tar.gz ADF4002_27MHz_PLL-9a240ddaa21efaa333d2d45a73fe2af9f60a1437.tar.bz2 ADF4002_27MHz_PLL-9a240ddaa21efaa333d2d45a73fe2af9f60a1437.zip |
Minor changes
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 |