Skip to main content

xpanse_api/interfaces/
usb.rs

1//! USB resources available to apps.
2
3use embassy_rp::{Peri, peripherals::USB};
4
5/// The board's USB peripheral token as stored in the resource registry.
6pub type UsbPeripheral = Peri<'static, USB>;
7
8embassy_rp::bind_interrupts!(
9/// Board IRQ binding used when constructing an Embassy RP USB driver.
10pub struct UsbIrqs {
11    USBCTRL_IRQ => embassy_rp::usb::InterruptHandler<USB>;
12});