Skip to content

Commit

Permalink
placeholder stub for the future USB stack on cramium targets
Browse files Browse the repository at this point in the history
The USB hardware stack is different enough that I think it
doesn't make sense to wedge it into the existing USB driver.
Instead it will be a separate driver that has the same `lib` level
API calls, but a totally different implementation underneath.

This allows us to make better architectural decisions that will
make the USB stack more reliable because the hardware has some
pretty strict latency requirements on responding to packets that
can't be met with the previous abstraction.
  • Loading branch information
bunnie committed Nov 7, 2024
1 parent 2692d37 commit c6871d5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions services/usb-cramium/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "usb-cramium"
version = "0.1.0"
edition = "2021"

[dependencies]
utralib = { version = "0.1.25", optional = true, default-features = false }
xous-names = { package = "xous-api-names", version = "0.9.63" }
ticktimer = { package = "xous-api-ticktimer", version = "0.9.61" }
xous = "0.9.64"
log-server = { package = "xous-api-log", version = "0.1.61" }
log = "0.4.14"
num-derive = { version = "0.3.3", default-features = false }
num-traits = { version = "0.2.14", default-features = false }
cramium-hal = { path = "../../libs/cramium-hal", features = ["std"] }
cram-hal-service = { path = "../cram-hal-service" }
xous-usb-hid = { git = "https://github.com/betrusted-io/xous-usb-hid.git", branch = "main" }
ghostfat = "0.5.0"

locales = { path = "../../locales" }

[features]
cramium-soc = ["utralib/cramium-soc"]
default = []
3 changes: 3 additions & 0 deletions services/usb-cramium/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit c6871d5

Please sign in to comment.