From b8366cf9a5cf87336352b9862cd536660d243a12 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 2 Sep 2019 13:13:40 +0200 Subject: arch makefiles: consistently use $SERIAL_PORT --- src/arch/arduino-nano/Makefile.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/arch/arduino-nano') diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc index 1abd217..367a4ba 100644 --- a/src/arch/arduino-nano/Makefile.inc +++ b/src/arch/arduino-nano/Makefile.inc @@ -1,7 +1,7 @@ # vim:ft=make MCU = atmega328p -PORT = /dev/ttyUSB0 +SERIAL_PORT ?= /dev/ttyUSB0 BAUD = 57600 cpu_freq ?= 16000000 @@ -90,24 +90,24 @@ build/system.hex: build/system.elf ${QUIET}${OBJCOPY} -O ihex ${@:.hex=.elf} $@ program: build/system.hex - ${QUIET}avrdude -p ${MCU} -c arduino -P ${PORT} -b ${BAUD} -U flash:w:build/system.hex + ${QUIET}avrdude -p ${MCU} -c arduino -P ${SERIAL_PORT} -b ${BAUD} -U flash:w:build/system.hex arch_clean: ${QUIET}rm -f ${OBJECTS} build/system.hex monitor: - ${QUIET}screen ${PORT} ${uart_baud} + ${QUIET}screen ${SERIAL_PORT} ${uart_baud} arch_help: @echo "arduino-nano specific flags:" - @echo " PORT = ${PORT}" - @echo " BAUD = ${BAUD} (only used for programming)" + @echo " SERIAL_PORT = ${SERIAL_PORT}" + @echo " BAUD = ${BAUD} (only used for programming)" arch_info: @echo "CPU Freq: ${cpu_freq} Hz" @echo "Timer Freq: ${timer_freq} Hz" @echo "I2C Freq: ${i2c_freq} Hz" @echo "Counter Overflow: 65536/255" - @echo "Monitor: ${PORT} ${uart_baud}" + @echo "Monitor: ${SERIAL_PORT} ${uart_baud}" .PHONY: arch_clean arch_help arch_info monitor program -- cgit v1.2.3