This
* renames DEFAULT_xID to USB_xID_TESTING as it is not really a default
(if anyting, the 7D00 is, and it's not that)
* moves the check into Makefile
* generalizes the check to all test PID/VID pairs
* in doing so, fixes the "or" (which would have ruled out warning-free
use of an allocated pid.codes number), and compares to the actual
testing PID rather than the RIOT-peripheral PID
* removes all occurrences of duplicated checks in examples or tests,
leaving definitions only where they are needed
* moves the Kconfig defaults of the usbus_minimal example into the main
Kconfig, as these are good defaults for all cases when USB is enabled
manually
Closes: https://github.com/RIOT-OS/RIOT/issues/12273
Expected result
Use the network related shell commands to verify the network link between the board under test and the host computer. Ping to the link local address from and to the host computer must work.
On the host computer, using tools such as ethtool must show the USB CDC ECM
interface as link detected:
# ethtool enp0s20u9u4
Settings for enp0s20u9u4:
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Background
This test application can be used to verify the USBUS CDC ECM implementation. Assuming drivers available, the board under test should show up on the host computer as an USB network interface. Drivers are available for both Linux and macOS.