aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/README.md
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-02-07 20:49:10 +0100
committerDario Nieuwenhuis <[email protected]>2023-02-08 00:16:04 +0100
commit1d841cc8ac74feacc4d231958ce2c46419ae3bda (patch)
tree44dbe827369eceb661c287d2c47ea17f00878c11 /embassy-usb/README.md
parent4a224efe75c7986f5b3d8c5d6083fa17cb774f12 (diff)
usb: make max interface count configurable at compile time.
Diffstat (limited to 'embassy-usb/README.md')
-rw-r--r--embassy-usb/README.md24
1 files changed, 23 insertions, 1 deletions
diff --git a/embassy-usb/README.md b/embassy-usb/README.md
index 581c3290f..a3d45b561 100644
--- a/embassy-usb/README.md
+++ b/embassy-usb/README.md
@@ -1,6 +1,28 @@
1# embassy-usb 1# embassy-usb
2 2
3TODO crate description/ 3TODO crate description
4
5## Configuration
6
7`embassy-usb` has some configuration settings that are set at compile time, affecting sizes
8and counts of buffers.
9
10They can be set in two ways:
11
12- Via Cargo features: enable a feature like `<name>-<value>`. `name` must be in lowercase and
13use dashes instead of underscores. For example. `max-interface-count-3`. Only a selection of values
14is available, check `Cargo.toml` for the list.
15- Via environment variables at build time: set the variable named `EMBASSY_USB_<value>`. For example
16`EMBASSY_USB_MAX_INTERFACE_COUNT=3 cargo build`. You can also set them in the `[env]` section of `.cargo/config.toml`.
17Any value can be set, unlike with Cargo features.
18
19Environment variables take precedence over Cargo features. If two Cargo features are enabled for the same setting
20with different values, compilation fails.
21
22### `MAX_INTERFACE_COUNT`
23
24Max amount of interfaces that can be created in one device. Default: 4.
25
4 26
5## Interoperability 27## Interoperability
6 28