1 2 3 4 5 6 7 8 9 10
pub type UsbAccessType = u8; // note this is just a type definition, we depend on its size /// Number of logical endpoints, including control pub const NUM_ENDPOINTS: usize = 1 + 4; pub const BYTES_PER_EP_REGISTER: usize = 4*4; pub const USB1_SRAM_ADDR: usize = 0x4010_0000; pub const EP_MEM_ADDR: usize = USB1_SRAM_ADDR; pub const EP_MEM_SIZE: usize = 0x4000; pub const EP_REGISTERS_SIZE: usize = NUM_ENDPOINTS * BYTES_PER_EP_REGISTER;