xpanse-api 0.1.1

Shared API for xpanse apps, module drivers, and platform firmware for the hackxpansion console
1
2
3
4
5
6
7
8
9
10
11
12
//! USB resources available to apps.

use embassy_rp::{Peri, peripherals::USB};

/// The board's USB peripheral token as stored in the resource registry.
pub type UsbPeripheral = Peri<'static, USB>;

embassy_rp::bind_interrupts!(
/// Board IRQ binding used when constructing an Embassy RP USB driver.
pub struct UsbIrqs {
    USBCTRL_IRQ => embassy_rp::usb::InterruptHandler<USB>;
});