summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-06-17 08:38:42 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-06-17 15:08:31 +0800
commitdf3be3b3cb0ef947e58cd6b7f38f8ba3ac9fffae (patch)
treef859f6d4a40aa6627ff38f247d563e78ad982d88 /Makefile
parenta5e03524b0005c87bfda0e68b582cb06ba8ca8a1 (diff)
downloadfpm-door-lock-df3be3b3cb0ef947e58cd6b7f38f8ba3ac9fffae.tar.gz
Run at 3v3/8MHz.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 883a3cf..8f22e14 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ CFLAGS += -Os
CFLAGS += -Wall
CFLAGS += -mmcu=$(MCU)
CFLAGS += -DBAUD=57600
-CFLAGS += -DF_CPU=16000000UL
+CFLAGS += -DF_CPU=8000000UL
CFLAGS += -DFPM_PWD=$(FPM_PWD)
CFLAGS += -ffunction-sections -fdata-sections
@@ -24,6 +24,7 @@ HEX_FLAGS += -j .text -j .data
AVRDUDE_FLAGS = -p $(MCU)
AVRDUDE_FLAGS += -c arduino
AVRDUDE_FLAGS += -P $(PORT)
+AVRDUDE_FLAGS += -b 57600
AVRDUDE_FLAGS += -D -U
%.o: %.c