mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
make usb-cramium suitable as a dependency for hosted emulation
This commit is contained in:
parent
286bfb8135
commit
af043c3a18
2 changed files with 14 additions and 3 deletions
|
|
@ -18,8 +18,9 @@ cramium-hal = { path = "../../libs/cramium-hal", features = [
|
|||
"debug-print-usb",
|
||||
# "verbose-debug",
|
||||
"axp2101",
|
||||
] }
|
||||
cram-hal-service = { path = "../cram-hal-service" }
|
||||
], optional = true }
|
||||
cram-hal-service = { path = "../cram-hal-service", optional = true }
|
||||
cramium-emu = { path = "../cramium-emu", optional = true }
|
||||
xous-usb-hid = { git = "https://github.com/betrusted-io/xous-usb-hid.git", branch = "main" }
|
||||
rkyv = { version = "0.8.8", default-features = false, features = [
|
||||
"std",
|
||||
|
|
@ -37,7 +38,14 @@ version = "0.2.8"
|
|||
features = ["log"]
|
||||
|
||||
[features]
|
||||
cramium-soc = ["utralib/cramium-soc", "utralib/std"]
|
||||
cramium-soc = []
|
||||
board-baosec = [
|
||||
"utralib/cramium-soc",
|
||||
"utralib/std",
|
||||
"cramium-hal",
|
||||
"cram-hal-service",
|
||||
]
|
||||
hosted-baosec = ["utralib/hosted", "utralib/std", "cramium-emu"]
|
||||
# none of these other modes are actually supported, but are listed here
|
||||
# to allow direct re-use of API code
|
||||
precursor = ["utralib/precursor", "utralib/std"]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
#![cfg_attr(target_os = "none", no_std)]
|
||||
|
||||
#[cfg(feature = "cramium-soc")]
|
||||
use cram_hal_service::trng;
|
||||
#[cfg(feature = "hosted-baosec")]
|
||||
use cramium_emu::trng;
|
||||
|
||||
pub mod api;
|
||||
pub use api::*;
|
||||
|
|
|
|||
Loading…
Reference in a new issue