This sample runs the USB test function (CONFIG_USB_TEST) and nothing else,
for the integration tests in tests/integration/usb, which drive it from the
host the board’s USB device port is connected to. See USB for what the function does, and
Integration tests for running the tests.
pbl samples samples/subsys/usb/test
every board
#include <stdio.h>
#include <pbl/usb/usbd.h>
int main(void) {
int ret;
ret = pbl_usbd_enable();
if (ret != 0) {
fprintf(stderr, "usb: test function failed (%d)\n", ret);
return ret;
}
printf("usb: test function up\n");
return 0;
}
usb: test function up
Generated from PebbleOS 9fa910d13. This page is maintained in the pebbleos repository: docs/samples/subsys/usb/test.md.