usbserial: Allow USB ids to be specified via Kconfig

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-01-25 19:02:01 -05:00
parent 1ad1ed573a
commit 932acd3048
2 changed files with 21 additions and 7 deletions

View File

@@ -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"