1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/usbus_minimal
chrysn 346093c290 usb: Move Kconfig/Makefile merging into main Makefile.include
This allows the check for test IDs to run independently of the
configuration source, and provides a canonical point for the
configurable (and tested) Makefile variable to enter CFLAGS.
2020-06-30 10:51:37 +02:00
..
main.c usbus_minimal: Adapt example to auto_init 2019-06-05 16:17:01 +02:00
Makefile usb: Move Kconfig/Makefile merging into main Makefile.include 2020-06-30 10:51:37 +02:00
README.md usb: Move configuration macros to 'CONFIG_' namespace 2020-01-14 10:34:53 +01:00

usbus_minimal example

This is a minimalistic example for RIOT's USB stack. The application will initialize and start the USB stack. The stack is started without any USB handlers, it should show up as an empty USB device on the host.

RIOT doesn't own any USB vendor and product ID. To compile this example, add your own vendor and product ID to the makefile:

CFLAGS += -DCONFIG_USB_VID=0xYOURVID -DCONFIG_USB_PID=0xYOURPID

The example demonstrates basic USB communication between a host and a RIOT based USB peripheral. Tools such as lsusb should display the device and detailed information about the device such as descriptor strings.