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 Jan 12, 2024
1 parent 7131100 commit 3886bef
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 3886bef

Please sign in to comment.