aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-06-16 14:59:03 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-06-16 14:59:03 -0400
commit3f3713ee97ed58a5dcd8a196904a14e9c5b81ad9 (patch)
tree7678023bd0bc43ee489e1fd5f0443fc2cc0accc5 /src
parentf55b9d3e5746b73d37f1f2de288aa06d9fe23138 (diff)
downloadkutter-3f3713ee97ed58a5dcd8a196904a14e9c5b81ad9.tar.gz
kutter-3f3713ee97ed58a5dcd8a196904a14e9c5b81ad9.tar.xz
kutter-3f3713ee97ed58a5dcd8a196904a14e9c5b81ad9.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/Kconfig6
-rw-r--r--src/atsam/Kconfig4
-rw-r--r--src/atsamd/Kconfig4
-rw-r--r--src/lpc176x/Kconfig4
-rw-r--r--src/rp2040/Kconfig4
-rw-r--r--src/stm32/Kconfig6
6 files changed, 6 insertions, 22 deletions
diff --git a/src/Kconfig b/src/Kconfig
index bb3ef3c2..eba05243 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -42,6 +42,8 @@ source "src/linux/Kconfig"
source "src/simulator/Kconfig"
# Generic configuration options for serial ports
+config SERIAL
+ bool
config SERIAL_BAUD
depends on SERIAL
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.
# Generic configuration options for USB
+config USBSERIAL
+ bool
config USB_VENDOR_ID
default 0x1d50
config USB_DEVICE_ID
@@ -74,6 +78,8 @@ config USB_SERIAL_NUMBER
endmenu
# Generic configuration options for CANbus
+config CANSERIAL
+ bool
config CANBUS_FREQUENCY
int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL
default 500000
diff --git a/src/atsam/Kconfig b/src/atsam/Kconfig
index 36785cfe..04c3c27f 100644
--- a/src/atsam/Kconfig
+++ b/src/atsam/Kconfig
@@ -89,10 +89,6 @@ config STACK_SIZE
int
default 512
-config USBSERIAL
- bool
-config SERIAL
- bool
choice
prompt "Communication interface"
config ATSAM_USB
diff --git a/src/atsamd/Kconfig b/src/atsamd/Kconfig
index 57c99c9f..baf9978d 100644
--- a/src/atsamd/Kconfig
+++ b/src/atsamd/Kconfig
@@ -134,10 +134,6 @@ config FLASH_START
default 0x2000 if FLASH_START_2000
default 0x0000
-config USBSERIAL
- bool
-config SERIAL
- bool
choice
prompt "Communication interface"
config ATSAMD_USB
diff --git a/src/lpc176x/Kconfig b/src/lpc176x/Kconfig
index f40c3943..def71fb0 100644
--- a/src/lpc176x/Kconfig
+++ b/src/lpc176x/Kconfig
@@ -62,10 +62,6 @@ config FLASH_START
default 0x4000 if SMOOTHIEWARE_BOOTLOADER
default 0x0000
-config USBSERIAL
- bool
-config SERIAL
- bool
choice
prompt "Communication interface"
config LPC_USB
diff --git a/src/rp2040/Kconfig b/src/rp2040/Kconfig
index c2a45e55..2b604e8c 100644
--- a/src/rp2040/Kconfig
+++ b/src/rp2040/Kconfig
@@ -51,10 +51,6 @@ config FLASH_START
# Communication inteface
######################################################################
-config USBSERIAL
- bool
-config SERIAL
- bool
choice
prompt "Communication interface"
config RP2040_USB
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 875d138e..ee79b373 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -275,12 +275,6 @@ config STM32F0_TRIM
# Communication inteface
######################################################################
-config USBSERIAL
- bool
-config SERIAL
- bool
-config CANSERIAL
- bool
choice
prompt "Communication interface"
config STM32_USB_PA11_PA12