Kconfig: Move SERIAL, USBSERIAL, and CANSERIAL definitions to src/Kconfig

There is no need to define these options in every board Kconfig file.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2022-06-16 14:59:03 -04:00
parent f55b9d3e57
commit 3f3713ee97
6 changed files with 6 additions and 22 deletions

View File

@ -42,6 +42,8 @@ source "src/linux/Kconfig"
source "src/simulator/Kconfig" source "src/simulator/Kconfig"
# Generic configuration options for serial ports # Generic configuration options for serial ports
config SERIAL
bool
config SERIAL_BAUD config SERIAL_BAUD
depends on SERIAL depends on SERIAL
int "Baud rate for serial port" if LOW_LEVEL_OPTIONS int "Baud rate for serial port" if LOW_LEVEL_OPTIONS
@ -51,6 +53,8 @@ config SERIAL_BAUD
to 250000. Read the FAQ before changing this value. to 250000. Read the FAQ before changing this value.
# Generic configuration options for USB # Generic configuration options for USB
config USBSERIAL
bool
config USB_VENDOR_ID config USB_VENDOR_ID
default 0x1d50 default 0x1d50
config USB_DEVICE_ID config USB_DEVICE_ID
@ -74,6 +78,8 @@ config USB_SERIAL_NUMBER
endmenu endmenu
# Generic configuration options for CANbus # Generic configuration options for CANbus
config CANSERIAL
bool
config CANBUS_FREQUENCY config CANBUS_FREQUENCY
int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL
default 500000 default 500000

View File

@ -89,10 +89,6 @@ config STACK_SIZE
int int
default 512 default 512
config USBSERIAL
bool
config SERIAL
bool
choice choice
prompt "Communication interface" prompt "Communication interface"
config ATSAM_USB config ATSAM_USB

View File

@ -134,10 +134,6 @@ config FLASH_START
default 0x2000 if FLASH_START_2000 default 0x2000 if FLASH_START_2000
default 0x0000 default 0x0000
config USBSERIAL
bool
config SERIAL
bool
choice choice
prompt "Communication interface" prompt "Communication interface"
config ATSAMD_USB config ATSAMD_USB

View File

@ -62,10 +62,6 @@ config FLASH_START
default 0x4000 if SMOOTHIEWARE_BOOTLOADER default 0x4000 if SMOOTHIEWARE_BOOTLOADER
default 0x0000 default 0x0000
config USBSERIAL
bool
config SERIAL
bool
choice choice
prompt "Communication interface" prompt "Communication interface"
config LPC_USB config LPC_USB

View File

@ -51,10 +51,6 @@ config FLASH_START
# Communication inteface # Communication inteface
###################################################################### ######################################################################
config USBSERIAL
bool
config SERIAL
bool
choice choice
prompt "Communication interface" prompt "Communication interface"
config RP2040_USB config RP2040_USB

View File

@ -275,12 +275,6 @@ config STM32F0_TRIM
# Communication inteface # Communication inteface
###################################################################### ######################################################################
config USBSERIAL
bool
config SERIAL
bool
config CANSERIAL
bool
choice choice
prompt "Communication interface" prompt "Communication interface"
config STM32_USB_PA11_PA12 config STM32_USB_PA11_PA12