Loading src/arch/arduino-nano/Makefile.inc +4 −2 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ MCU = atmega328p PROGRAMMER ?= usbasp PORT = /dev/ttyUSB0 BAUD = 57600 INCLUDES += -Iinclude/arduino-nano COMMON_FLAGS += -mmcu=${MCU} -DF_CPU=16000000UL Loading Loading @@ -29,12 +31,12 @@ build/system.hex: build/system.elf ${OBJCOPY} -O ihex ${@:.hex=.elf} $@ program: build/system.hex avrdude -p ${MCU} -c arduino -P /dev/ttyUSB0 -b 57600 -U flash:w:build/system.hex avrdude -p ${MCU} -c arduino -P ${PORT} -b ${BAUD} -U flash:w:build/system.hex arch_clean: rm -f ${OBJECTS} build/system.hex monitor: screen /dev/ttyUSB0 115200 screen ${PORT} 115200 .PHONY: arch_clean monitor program Loading
src/arch/arduino-nano/Makefile.inc +4 −2 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ MCU = atmega328p PROGRAMMER ?= usbasp PORT = /dev/ttyUSB0 BAUD = 57600 INCLUDES += -Iinclude/arduino-nano COMMON_FLAGS += -mmcu=${MCU} -DF_CPU=16000000UL Loading Loading @@ -29,12 +31,12 @@ build/system.hex: build/system.elf ${OBJCOPY} -O ihex ${@:.hex=.elf} $@ program: build/system.hex avrdude -p ${MCU} -c arduino -P /dev/ttyUSB0 -b 57600 -U flash:w:build/system.hex avrdude -p ${MCU} -c arduino -P ${PORT} -b ${BAUD} -U flash:w:build/system.hex arch_clean: rm -f ${OBJECTS} build/system.hex monitor: screen /dev/ttyUSB0 115200 screen ${PORT} 115200 .PHONY: arch_clean monitor program