1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#![no_std]
#[cfg(not(any(feature = "ram_access_1x16", feature = "ram_access_2x16")))]
compile_error!("This crate requires one of the ram_access features enabled");
#[cfg(all(feature = "ram_access_1x16", feature = "ram_access_2x16"))]
compile_error!("Multiple ram_access features are specified. Only a single feature can be specified.");
pub mod bus;
mod endpoint;
mod endpoint_memory;
mod registers;
pub use crate::bus::UsbBus;
mod pac;
pub unsafe trait UsbPeripheral: Send + Sync {
const REGISTERS: *const ();
const DP_PULL_UP_FEATURE: bool;
const EP_MEMORY: *const ();
const EP_MEMORY_SIZE: usize;
fn enable();
fn startup_delay();
}