mirror of https://github.com/Desuuuu/klipper.git
Kconfig: Move SERIAL_BAUD to src/Kconfig and show with LOW_LEVEL_OPTIONS
Move the definition of SERIAL_BAUD to the main src/Kconfig file. Only show this as an option if the user selects the ability to configure low-level options. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4fec225115
commit
b6ccd2682c
|
@ -50,9 +50,7 @@ make menuconfig
|
||||||
```
|
```
|
||||||
|
|
||||||
Select the appropriate micro-controller and review any other options
|
Select the appropriate micro-controller and review any other options
|
||||||
provided. For boards with serial ports, the recommended baud rate is
|
provided. Once configured, run:
|
||||||
250000 (see the [FAQ](FAQ.md#how-do-i-change-the-serial-baud-rate)
|
|
||||||
before changing). Once configured, run:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
make
|
make
|
||||||
|
|
|
@ -38,6 +38,14 @@ source "src/pru/Kconfig"
|
||||||
source "src/linux/Kconfig"
|
source "src/linux/Kconfig"
|
||||||
source "src/simulator/Kconfig"
|
source "src/simulator/Kconfig"
|
||||||
|
|
||||||
|
# Generic configuration options for serial ports
|
||||||
|
config SERIAL_BAUD
|
||||||
|
depends on SERIAL
|
||||||
|
int "Baud rate for serial port" if LOW_LEVEL_OPTIONS
|
||||||
|
default 250000
|
||||||
|
help
|
||||||
|
Specify the baud rate of the serial port. This should be set
|
||||||
|
to 250000. Read the FAQ before changing this value.
|
||||||
|
|
||||||
# Step timing customization
|
# Step timing customization
|
||||||
config CUSTOM_STEP_DELAY
|
config CUSTOM_STEP_DELAY
|
||||||
|
|
|
@ -62,9 +62,5 @@ config SERIAL
|
||||||
depends on !USBSERIAL
|
depends on !USBSERIAL
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
config SERIAL_BAUD
|
|
||||||
depends on SERIAL
|
|
||||||
int "Baud rate for serial port"
|
|
||||||
default 250000
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -49,9 +49,5 @@ config SERIAL
|
||||||
depends on !USBSERIAL
|
depends on !USBSERIAL
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
config SERIAL_BAUD
|
|
||||||
depends on SERIAL
|
|
||||||
int "Baud rate for serial port"
|
|
||||||
default 250000
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -124,10 +124,6 @@ choice
|
||||||
config AVR_SERIAL_UART3
|
config AVR_SERIAL_UART3
|
||||||
bool "UART3" if MACH_atmega2560 || MACH_atmega1280
|
bool "UART3" if MACH_atmega2560 || MACH_atmega1280
|
||||||
endchoice
|
endchoice
|
||||||
config SERIAL_BAUD
|
|
||||||
depends on SERIAL
|
|
||||||
int "Baud rate for serial port"
|
|
||||||
default 250000
|
|
||||||
config SERIAL_BAUD_U2X
|
config SERIAL_BAUD_U2X
|
||||||
depends on SERIAL && !SIMULAVR
|
depends on SERIAL && !SIMULAVR
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -44,9 +44,5 @@ config SERIAL
|
||||||
depends on !USBSERIAL
|
depends on !USBSERIAL
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
config SERIAL_BAUD
|
|
||||||
depends on SERIAL
|
|
||||||
int "Baud rate for serial port"
|
|
||||||
default 250000
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -19,8 +19,4 @@ config CLOCK_FREQ
|
||||||
int
|
int
|
||||||
default 20000000
|
default 20000000
|
||||||
|
|
||||||
config SERIAL_BAUD
|
|
||||||
int
|
|
||||||
default 250000
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -38,9 +38,5 @@ config SERIAL
|
||||||
depends on !USBSERIAL
|
depends on !USBSERIAL
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
config SERIAL_BAUD
|
|
||||||
depends on SERIAL
|
|
||||||
int "Baud rate for serial port"
|
|
||||||
default 250000
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue