Define baudrate per default
This commit is contained in:
parent
18768ccd63
commit
3f284654ea
4
Makefile
4
Makefile
@ -11,6 +11,10 @@ ifdef BOARD
|
||||
include boards/$(BOARD).mk
|
||||
endif
|
||||
|
||||
ifdef BAUDRATE
|
||||
CPPFLAGS += -DBAUDRATE=$(BAUDRATE)
|
||||
endif
|
||||
|
||||
default: $(PROG).hex
|
||||
|
||||
clean:
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,5 @@
|
||||
include boards/nano.mk
|
||||
|
||||
CPPFLAGS += -DBAUDRATE=$(AVRDUDE_BAUD)
|
||||
|
||||
ifndef PROG
|
||||
PROG = relaycard
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user