From db5a4351a5d580563fa4c0323997a4f48bfe120d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 2 Jun 2022 12:43:19 -0400 Subject: [PATCH] Kconfig: Move CANBUS_FREQUENCY definition from src/stm32/Kconfig to src/Kconfig Signed-off-by: Kevin O'Connor --- src/Kconfig | 5 +++++ src/stm32/Kconfig | 4 ---- 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