diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-02 13:13:40 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-02 13:13:40 +0200 |
commit | b8366cf9a5cf87336352b9862cd536660d243a12 (patch) | |
tree | c31be7c5fd3befc109f17b65e5df44dbddac0317 /src/arch/arduino-nano | |
parent | 6f39086d550b66d2039f3f87f097d573d92eb047 (diff) |
arch makefiles: consistently use $SERIAL_PORT
Diffstat (limited to 'src/arch/arduino-nano')
-rw-r--r-- | src/arch/arduino-nano/Makefile.inc | 12 |
1 files changed, 6 insertions, 6 deletions
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 |