diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-11-03 14:16:32 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-11-03 14:16:32 +0800 |
| commit | 0c1f7fef8447da32a94c7b6784edd9a6b3a12428 (patch) | |
| tree | 5120196e2748f7fb7d35a0b1178d312fb3accb7b /door_lock/Makefile | |
| parent | 92807aed3d3dc17fdf94d35d8b26c1d894aab9f2 (diff) | |
| download | smart-home-0c1f7fef8447da32a94c7b6784edd9a6b3a12428.tar.gz | |
Serial console.
Diffstat (limited to 'door_lock/Makefile')
| -rw-r--r-- | door_lock/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/door_lock/Makefile b/door_lock/Makefile index 3214ccf..c188507 100644 --- a/door_lock/Makefile +++ b/door_lock/Makefile @@ -2,15 +2,16 @@ CC = avr-gcc MCU = atmega328p TARGET = app -SRC = main.c +SRC = main.c serial.c OBJ = $(SRC:.c=.o) CFLAGS = -std=gnu99 CFLAGS += -Os -CFLAGS+= -Wall -CFLAGS+= -mmcu=$(MCU) -CFLAGS+= -DF_CPU=16000000UL -CFLAGS+= -ffunction-sections -fdata-sections +CFLAGS += -Wall +CFLAGS += -mmcu=$(MCU) +CFLAGS += -DBAUD=115200 +CFLAGS += -DF_CPU=16000000UL +CFLAGS += -ffunction-sections -fdata-sections LDFLAGS = -mmcu=$(MCU) LDFLAGS += -Wl,--gc-sections |
