aboutsummaryrefslogtreecommitdiffstats
path: root/src/Kconfig
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-01-25 19:02:01 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-25 19:04:14 -0500
commit932acd3048f7b171d5dc7829fcbcea63b5cc1bea (patch)
tree1db78de166d6f728b3c30cdfe8b506ddc705e804 /src/Kconfig
parent1ad1ed573a8b68a0554a73615f80dd37655f401e (diff)
downloadkutter-932acd3048f7b171d5dc7829fcbcea63b5cc1bea.tar.gz
kutter-932acd3048f7b171d5dc7829fcbcea63b5cc1bea.tar.xz
kutter-932acd3048f7b171d5dc7829fcbcea63b5cc1bea.zip
usbserial: Allow USB ids to be specified via Kconfig
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index f667dae4..6f98b8c8 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -47,6 +47,22 @@ config SERIAL_BAUD
Specify the baud rate of the serial port. This should be set
to 250000. Read the FAQ before changing this value.
+# Generic configuration options for USB
+menu "USB ids"
+ depends on USBSERIAL
+
+config USB_VENDOR_ID
+ hex "USB vendor ID"
+ default 0x2341
+config USB_DEVICE_ID
+ hex "USB device ID"
+ default 0xabcd
+config USB_SERIAL_NUMBER
+ string "USB serial number"
+ default "12345"
+
+endmenu
+
# Step timing customization
config CUSTOM_STEP_DELAY
bool "Specify a custom step pulse duration"