aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/Makefile10
-rw-r--r--src/app/README.md5
2 files changed, 9 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
diff --git a/src/app/README.md b/src/app/README.md
index 9683e00..a797ec4 100644
--- a/src/app/README.md
+++ b/src/app/README.md
@@ -8,3 +8,8 @@ On startup, configure ADF4002 with
f_VCO = N ⋅ f_REF / R
27 = 1080 ⋅ 10 / 400
+
+ATtiny eFuse
+------------
+
+Kept at default 62 DF FF