zephyr/samples/subsys/usb/midi/app.overlay
Titouan Christophe 9be79bc145 samples: subsys: usb: midi: add new sample
Add a sample application that demonstrates how to use the new USB-MIDI 2.0
device class. This shows how to set up the device tree, how to exchange
MIDI data with the host, and how to use the data accessors provided by
the new API.

Signed-off-by: Titouan Christophe <moiandme@gmail.com>
2025-01-31 19:50:26 +01:00

20 lines
300 B
Plaintext

/*
* Copyright (c) 2024 Titouan Christophe
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
usb_midi: usb_midi {
compatible = "zephyr,midi2-device";
status = "okay";
#address-cells = <1>;
#size-cells = <1>;
midi_in_out@0 {
reg = <0 1>;
protocol = "midi1-up-to-128b";
};
};
};