Define baudrate per default

This commit is contained in:
Nero 2018-01-29 23:02:06 +00:00 committed by Nero
parent 18768ccd63
commit 3f284654ea
3 changed files with 7 additions and 3 deletions

View File

@ -11,6 +11,10 @@ ifdef BOARD
include boards/$(BOARD).mk
endif
ifdef BAUDRATE
CPPFLAGS += -DBAUDRATE=$(BAUDRATE)
endif
default: $(PROG).hex
clean:

View File

@ -3,6 +3,8 @@ MCU_FREQ = 16000000UL
CPPFLAGS += -DLED_DDR=DDRB -DLED_PORT=PORTB -DLED_PIN=5
BAUDRATE = 56700
AVRDUDE_TYPE = arduino
AVRDUDE_TTY = /dev/ttyUSB0
AVRDUDE_BAUD = 57600
AVRDUDE_BAUD = 56700

View File

@ -1,7 +1,5 @@
include boards/nano.mk
CPPFLAGS += -DBAUDRATE=$(AVRDUDE_BAUD)
ifndef PROG
PROG = relaycard
endif