diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-06-12 11:55:46 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-06-16 11:03:48 -0400 |
commit | fc7838855f886383917076cee87b13938d8bbe40 (patch) | |
tree | 4266addc37bb5ebc80dd0da654fa8a79c371e34b /src/Kconfig | |
parent | 3f7d05dd18469927dff1cf5a7d35d67ec9fd7cdc (diff) | |
download | kutter-fc7838855f886383917076cee87b13938d8bbe40.tar.gz kutter-fc7838855f886383917076cee87b13938d8bbe40.tar.xz kutter-fc7838855f886383917076cee87b13938d8bbe40.zip |
canbus: Move canbus uuid calculation to canbus.c
Move the uuid hash calculation to canbus.c and call canbus_set_uuid()
from src/stm32/chipid.c . This simplifies the low-level canbus
hardware code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r-- | src/Kconfig | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Kconfig b/src/Kconfig index 54c3497e..bb3ef3c2 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -56,16 +56,11 @@ config USB_VENDOR_ID config USB_DEVICE_ID default 0x614e config USB_SERIAL_NUMBER_CHIPID - depends on HAVE_CHIPID + depends on HAVE_CHIPID && USBSERIAL default y 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 @@ -78,6 +73,12 @@ config USB_SERIAL_NUMBER string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID endmenu +# Generic configuration options for CANbus +config CANBUS_FREQUENCY + int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL + default 500000 + +# Support setting gpio state at startup config INITIAL_PINS string "GPIO pins to set at micro-controller startup" depends on LOW_LEVEL_OPTIONS |