Allow BAUDRATE override by build opts

This commit is contained in:
Ted Hess 2017-12-11 12:48:36 -05:00
parent 38b65a85df
commit 6579fe51ad
2 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@
#define SERIAL_PORT 0
// This determines the communication speed of the printer
#ifndef BAUDRATE
#define BAUDRATE 115200
#endif
// This enables the serial port associated to the Bluetooth interface
//#define BTENABLED // Enable BT interface on AT90USB devices

View File

@ -29,7 +29,7 @@ platform = atmelavr
board = reprap_rambo
framework = arduino
board_f_cpu = 16000000L
build_flags = -I$BUILDSRC_DIR -Wall -Wextra
build_flags = -DBAUDRATE=250000 -I$BUILDSRC_DIR -Wall -Wextra
; Not needed for Prusa-Firmware
;extra_scripts = ./generate_version_header_for_marlin.py
;build_flags = -DUSE_AUTOMATIC_VERSIONING -I$BUILDSRC_DIR -Wall -Wextra