From 62f57a045c7e93fcf36d14db638d5fee6db4696d Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Mon, 11 Mar 2013 16:21:20 +1100 Subject: [PATCH] Makefile: allow user-specified baud rate for console, ie "make BAUD=115200 console" works as expected --- src/makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/makefile b/src/makefile index d95c2dc4..129a2f43 100644 --- a/src/makefile +++ b/src/makefile @@ -42,6 +42,7 @@ endif include $(BUILD_DIR)/build.mk CONSOLE?=/dev/arduino_A900K10V +BAUD?=2000000 .PHONY: debug-store flash upload debug console dfu @@ -61,5 +62,5 @@ debug: ../LPC1768/$(PROJECT)_lastupload.elf arm-none-eabi-gdb $< -ex "set target-charset ASCII" -ex "set remotelogfile mri.log" -ex "target remote $(CONSOLE)" console: - stty raw ignbrk -echo 2000000 < $(CONSOLE) + stty raw ignbrk -echo $(BAUD) < $(CONSOLE) ( cat <&3 & cat >&3 ; kill %% ) 3<>$(CONSOLE) -- 2.20.1