aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-06-02 12:43:19 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-06-04 11:56:59 -0400
commitdb5a4351a5d580563fa4c0323997a4f48bfe120d (patch)
treef2626cee8b747b57ab5c7d3cc2bade0d27493f6f /src
parentc1f4bdebf283ef8860179216fdc4d4d87e595213 (diff)
downloadkutter-db5a4351a5d580563fa4c0323997a4f48bfe120d.tar.gz
kutter-db5a4351a5d580563fa4c0323997a4f48bfe120d.tar.xz
kutter-db5a4351a5d580563fa4c0323997a4f48bfe120d.zip
Kconfig: Move CANBUS_FREQUENCY definition from src/stm32/Kconfig to src/Kconfig
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/Kconfig5
-rw-r--r--src/stm32/Kconfig4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/Kconfig b/src/Kconfig
index ea2300ec..54c3497e 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -61,6 +61,11 @@ config USB_SERIAL_NUMBER_CHIPID
config USB_SERIAL_NUMBER
default "12345"
+# Generic configuration options for CANbus
+config CANBUS_FREQUENCY
+ int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL
+ default 500000
+
menu "USB ids"
depends on USBSERIAL && LOW_LEVEL_OPTIONS
config USB_VENDOR_ID
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 62551dd8..30c72414 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -351,8 +351,4 @@ choice
select CANSERIAL
endchoice
-config CANBUS_FREQUENCY
- int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL
- default 500000
-
endif