usb Kconfig: Provide explicit defaults
See-Also: https://github.com/RIOT-OS/RIOT/pull/13382#discussion_r380506106
This commit is contained in:
parent
fbd7b66f33
commit
85d7042732
@ -16,8 +16,8 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Exported for the benefit of Kconfig
|
# Exported for the benefit of Kconfig
|
||||||
export USB_VID_TESTING = 1209
|
USB_VID_TESTING = 1209
|
||||||
export USB_PID_TESTING = 7D01
|
USB_PID_TESTING = 7D01
|
||||||
usb_id_check:
|
usb_id_check:
|
||||||
@if grep --quiet --ignore-case "^$(USB_VID) $(USB_PID)$$" $(RIOTBASE)/dist/usb_id_testing; then \
|
@if grep --quiet --ignore-case "^$(USB_VID) $(USB_PID)$$" $(RIOTBASE)/dist/usb_id_testing; then \
|
||||||
$(COLOR_ECHO) "$(COLOR_RED)Private testing pid.codes USB VID/PID used!, do not use it outside of test environments!$(COLOR_RESET)" 1>&2 ; \
|
$(COLOR_ECHO) "$(COLOR_RED)Private testing pid.codes USB VID/PID used!, do not use it outside of test environments!$(COLOR_RESET)" 1>&2 ; \
|
||||||
|
|||||||
@ -45,14 +45,14 @@ endchoice
|
|||||||
config USB_PID
|
config USB_PID
|
||||||
hex "Product ID"
|
hex "Product ID"
|
||||||
range 0x0000 0xFFFF
|
range 0x0000 0xFFFF
|
||||||
default 0x$(USB_PID_TESTING)
|
default 0x7D01
|
||||||
help
|
help
|
||||||
You must provide your own PID.
|
You must provide your own PID.
|
||||||
|
|
||||||
config USB_VID
|
config USB_VID
|
||||||
hex "Vendor ID"
|
hex "Vendor ID"
|
||||||
range 0x0000 0xFFFF
|
range 0x0000 0xFFFF
|
||||||
default 0x$(USB_VID_TESTING)
|
default 0x1209
|
||||||
help
|
help
|
||||||
You must provide your own VID.
|
You must provide your own VID.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user