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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/// Logging facade.
///
/// With the `defmt` feature these are `defmt`'s own macros; without it they
/// expand to nothing so the stack builds without the logging dependency.
/// No-op logging macros used when the `defmt` feature is disabled.
// ── Modules ──────────────────────────────────────────────────────────────────
// ── Crate-level constants ─────────────────────────────────────────────────────
/// Maximum number of endpoints the device stack can track (endpoint numbers
/// 0–15, IN and OUT). Peripheral implementations may support fewer.
pub const MAX_ENDPOINTS: usize = 16;
/// Maximum packet size for EP0 (full-speed USB 2.0).
pub const CONTROL_MAX_PACKET_SIZE: u16 = 64;
/// Maximum packet size for bulk/interrupt endpoints (full-speed USB 2.0).
pub const BULK_MAX_PACKET_SIZE: u16 = 64;