mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
add routines to move packets; refactor tricky bits
we're able to receive the setup packet, but still nothing is being sent out of the core.
This commit is contained in:
parent
26d15084a3
commit
31e03a9bc7
3 changed files with 851 additions and 262 deletions
|
|
@ -19,6 +19,7 @@ num-derive = { version = "0.3.3", default-features = false }
|
||||||
num-traits = { version = "0.2.14", default-features = false }
|
num-traits = { version = "0.2.14", default-features = false }
|
||||||
riscv = { version = "0.5.6", package = "xous-riscv" }
|
riscv = { version = "0.5.6", package = "xous-riscv" }
|
||||||
usb-device = { version = "0.2.8", features = ["log"], optional = true }
|
usb-device = { version = "0.2.8", features = ["log"], optional = true }
|
||||||
|
bitfield = "0.13.2"
|
||||||
|
|
||||||
# [target.'cfg(target_os = "xous")'.dependencies]
|
# [target.'cfg(target_os = "xous")'.dependencies]
|
||||||
xous = { version = "0.9.61", features = ["v2p"] }
|
xous = { version = "0.9.61", features = ["v2p"] }
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -101,7 +101,6 @@ pub const EPRUNNING: Register = Register::new(CORIGINE_DEV_OFFSET / 4 + 0x64 / 4
|
||||||
pub const EPRUNNING_RUNNING: Field = Field::new(30, 2, EPRUNNING);
|
pub const EPRUNNING_RUNNING: Field = Field::new(30, 2, EPRUNNING);
|
||||||
|
|
||||||
pub const CMDPARA0: Register = Register::new(CORIGINE_DEV_OFFSET / 4 + 0x70 / 4, 0xFFFF_FFFF);
|
pub const CMDPARA0: Register = Register::new(CORIGINE_DEV_OFFSET / 4 + 0x70 / 4, 0xFFFF_FFFF);
|
||||||
pub const CMDPARA0_CMD0_INIT_EP0_DQPTRLO: Field = Field::new(28, 4, CMDPARA0);
|
|
||||||
pub const CMDPARA0_CMD0_INIT_EP0_DCS: Field = Field::new(1, 0, CMDPARA0);
|
pub const CMDPARA0_CMD0_INIT_EP0_DCS: Field = Field::new(1, 0, CMDPARA0);
|
||||||
pub const CMDPARA0_CMD1_UPDATE_EP0_MPS: Field = Field::new(16, 16, CMDPARA0);
|
pub const CMDPARA0_CMD1_UPDATE_EP0_MPS: Field = Field::new(16, 16, CMDPARA0);
|
||||||
pub const CMDPARA0_CMD2_SET_ADDR: Field = Field::new(8, 0, CMDPARA0);
|
pub const CMDPARA0_CMD2_SET_ADDR: Field = Field::new(8, 0, CMDPARA0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue