[riot-notifications] [RIOT-OS/RIOT] Pr/usbus/auto tests (#12267)
notifications at github.com
Tue Sep 17 22:22:47 CEST 2019
### Contribution description
This PR adds a basic test for validating the USB enumeration sequence as performed by a host. Responses from the USBUS stack are validated by using a mock usbdev device which is faking the interaction.
There are `DEBUG` statement in the test which can be enabled to track during which request the stack caused a failed assertion.
A number of issues with USBUS were found during the writing of this test (and during the writing of the CDC ACM functionality) which are fixed in the first commit.
### Testing procedure
Run test, check output.
### Issues/PRs references
Required for #11085
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* usbus: Rework handling of set control requests
* tests/usbus: Add automated test for usbus init
-- File Changes --
M sys/include/usb/usbus/control.h (17)
M sys/usb/usbus/usbus_control.c (70)
A tests/usbus/Makefile (22)
A tests/usbus/main.c (349)
A tests/usbus/usbdev_mock.c (225)
A tests/usbus/usbdev_mock.h (108)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications