Skip to content

Commit

Permalink
usb Kconfig: Provide explicit defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Apr 3, 2020
1 parent 16148b2 commit 123288c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions makefiles/usb-codes.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ else
endif

# Exported for the benefit of Kconfig
export USB_VID_TESTING = 1209
export USB_PID_TESTING = 7D01
USB_VID_TESTING = 1209
USB_PID_TESTING = 7D01
usb_id_check:
@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 ; \
Expand Down
4 changes: 2 additions & 2 deletions sys/usb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ endchoice
config USB_PID
hex "Product ID"
range 0x0000 0xFFFF
default 0x$(USB_PID_TESTING)
default 0x7D01
help
You must provide your own PID.

config USB_VID
hex "Vendor ID"
range 0x0000 0xFFFF
default 0x$(USB_VID_TESTING)
default 0x1209
help
You must provide your own VID.

Expand Down

0 comments on commit 123288c

Please sign in to comment.