diff options
| author | Saulo VerĂssimo <[email protected]> | 2026-05-16 13:00:05 -0300 |
|---|---|---|
| committer | Saulo VerĂssimo <[email protected]> | 2026-05-16 13:00:05 -0300 |
| commit | 43a72cb614e2fdd27788057a6f9e843d458f1ca5 (patch) | |
| tree | 73f16da5b6eb53d59886db793556fe25238f68ac /examples/device/midi2_device/Makefile | |
| parent | 840f3e0a628e69a2b7fb4136b2dca8ab5b350f83 (diff) | |
midi2: device example - portable, add protocol fallback
Remove the rp2040-only guard; the example now follows the audio_test
pattern (only Espressif uses its own build system). Add CMakePresets.json
and generic product strings.
The runtime fallback picks the path that matches the host state, per
message, mirroring the idea behind the UAC examples:
Alt 0 USB-MIDI 1.0 32-bit Event Packets (packet_write)
Alt 1 + MIDI 1.0 negotiated UMP MT 0x2 (ump_write)
Alt 1 + MIDI 2.0 negotiated UMP MT 0x4 (ump_write)
Build-tested on rp2040, rp2350, stm32f0/f1/f2/f3/f4/f7/g0/g4/h5/h7/l0/l4/u0/u5/wb/c0,
samd2x_l2x, samd5x_e5x, same7x, nrf, imxrt, lpc17, lpc55, mcx, ra,
da1469x, efm32.
Ref #3571
Diffstat (limited to 'examples/device/midi2_device/Makefile')
| -rw-r--r-- | examples/device/midi2_device/Makefile | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/examples/device/midi2_device/Makefile b/examples/device/midi2_device/Makefile index 09f069c4f..829d9da59 100644 --- a/examples/device/midi2_device/Makefile +++ b/examples/device/midi2_device/Makefile @@ -1,12 +1,3 @@ -# This example requires RP2040/RP2350 (USB descriptors and config are board-specific) -ifeq (,$(findstring rp2040,$(FAMILY))) -$(info Skipping midi2_device: requires FAMILY=rp2040) -all: - @: -.DEFAULT: - @: -else - include ../../../hw/bsp/family_support.mk INC += \ @@ -23,5 +14,3 @@ SRC_C += $(addprefix $(EXAMPLE_PATH)/, $(EXAMPLE_SOURCE)) CFLAGS_GCC += -Wno-type-limits include ../../../hw/bsp/family_rules.mk - -endif |
