Skip to content

Commit

Permalink
riot-rs-embassy: add comment on how to override the usb config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Dec 21, 2023
1 parent 19cb0c3 commit 8cd85d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/riot-rs-embassy/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//! This module provides an opinionated integration of `embassy`.
//!
//! To provide a custom USB configuration, enable the feature
//! `riot_rs_embassy/override_usb_config`, then add this to your code:
//! ```rust
//! #[no_mangle]
//! pub fn riot_rs_usb_config() -> embassy_usb::Config<'static> {
//! /// create config here
//! }
//! ```

#![no_std]
#![feature(type_alias_impl_trait)]
#![feature(used_with_arg)]
Expand Down

0 comments on commit 8cd85d3

Please sign in to comment.