-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from rust-embedded-community/next
Version 0.4.0
- Loading branch information
Showing
28 changed files
with
955 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
[package] | ||
name = "usbd-midi" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = [ | ||
"Beau Trepp <[email protected]>", | ||
"Florian Jung <[email protected]>", | ||
"Oliver Rockstedt <[email protected]>", | ||
] | ||
edition = "2018" | ||
edition = "2021" | ||
description = "A USB MIDI implementation for usb-device." | ||
homepage = "https://github.com/rust-embedded-community/usbd-midi" | ||
repository = "https://github.com/rust-embedded-community/usbd-midi" | ||
license = "MIT" | ||
categories = ["no-std", "embedded", "hardware-support"] | ||
keywords = ["usb", "midi"] | ||
|
||
[features] | ||
default = ["message-types"] | ||
message-types = ["dep:num_enum"] | ||
|
||
[dependencies] | ||
usb-device = "0.3" | ||
|
||
[dependencies.num_enum] | ||
version = "0.7.2" | ||
version = "0.7.3" | ||
default-features = false | ||
optional = true | ||
|
||
[lints.rust] | ||
missing_docs = "warn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# ESP32-S3 Example | ||
|
||
This example was developed and tested on an [ESP32-S3-DevKitC-1](https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-devkitc-1/index.html) using the [esp-hal crate](https://crates.io/crates/esp-hal). | ||
|
||
It features: | ||
|
||
- Sending and receiving of regular MIDI messages. | ||
- Sending and receiving of MIDI System Exclusive messages with buffering. | ||
- Conversion of USB MIDI packets from and to types provided by the [midi-types crate](https://crates.io/crates/midi-types). | ||
|
||
It does not provide a fully production-ready setup, especially time-critical tasks like polling the USB bus in an interrupt and managing bus timeouts are out of scope of this example. | ||
|
||
## Requirements | ||
|
||
To build the example, an installed toolchain for the Xtensa target is required. Please refer to the [Rust on ESP book](https://docs.esp-rs.org/book/) for further instructions. | ||
|
||
You can build the example by running: | ||
|
||
cargo build --release | ||
|
||
If [espflash](https://crates.io/crates/espflash) is installed, you can flash the example to the board and run it: | ||
|
||
cargo run --release | ||
|
||
## Functionality | ||
|
||
- Incoming MIDI messages are logged to the console. | ||
- Pressing and releasing the *BOOT* button on the board sends MIDI messages. | ||
- A received *Device Inquiry* SysEx request is responded to the host. | ||
|
||
Please note that all chosen vendor and product ids and names are just for demonstration purposes and should not be used with a real product. |
Oops, something went wrong.