mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
a bit convoluted: - RTC wakeup goes through the "always on" subsystem - keyboard routes through "always on" because the system can wake on keyboard press - thus the keyboard mechanism is abused/re-used to pass wakeup events throughout the system. Other notes - a wakeup alarm sent within 2 seconds of the current time will trigger an assert. It's not recommended to use the RTC for very near-term wakeups because if you e.g. hit swap or have something else going on that's very "busy" (like QR code scanning) the system might not get to waking things up in time. Some code can be written to handle this and set up a degenerate wakeup, maybe, but for now, I am leaving it as an assert because I want to remind myself that there is an edge case here.
59 lines
2 KiB
TOML
59 lines
2 KiB
TOML
[package]
|
|
name = "bao1x-hal-service"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
utralib = { version = "0.1.27", optional = true, default-features = false, features = [
|
|
"bao1x",
|
|
] }
|
|
xous-names = { package = "xous-api-names", version = "0.9.71" }
|
|
ticktimer = { package = "xous-api-ticktimer", version = "0.9.70" }
|
|
xous = { version = "0.9.70", features = ["raw-trng"] }
|
|
xous-ipc = "0.10.10"
|
|
log-server = { package = "xous-api-log", version = "0.1.69" }
|
|
log = "0.4.14"
|
|
xous-api-susres = { path = "../../api/xous-api-susres", features = ["bao1x"] }
|
|
bao1x-hal = { path = "../../libs/bao1x-hal", default-features = false }
|
|
bao1x-api = { path = "../../libs/bao1x-api", features = ["derive-rkyv", "std"] }
|
|
bio-lib = { path = "../../libs/bio-lib", features = ["av-trng"] }
|
|
# I'm not entirely in love with the aborted attempt to use flatipc in Xous, but we use
|
|
# this because it makes the API backward-compatible with older Xous code.
|
|
flatipc = { path = "../../libs/flatipc" }
|
|
flatipc-derive = { path = "../../libs/flatipc-derive" }
|
|
rand = "0.8.5"
|
|
rand_core = "0.6.4"
|
|
rand_chacha = "0.3.1"
|
|
bitfield = "0.13.2"
|
|
# TODO: migrate from bitfield to bitbybit
|
|
bitbybit = "1.4.0"
|
|
arbitrary-int = "1.2"
|
|
bytemuck = "1.24.0"
|
|
chrono = { version = "0.4.33", default-features = false, features = ["std"] }
|
|
|
|
num-derive = { version = "0.4.2", default-features = false }
|
|
num-traits = { version = "0.2.14", default-features = false }
|
|
rkyv = { version = "0.8.8", default-features = false, features = [
|
|
"std",
|
|
"alloc",
|
|
] }
|
|
|
|
[features]
|
|
keyboard-testing = []
|
|
app-uart = []
|
|
rawserial = []
|
|
pinger = []
|
|
swap = []
|
|
mpw = ["bao1x-hal/mpw"]
|
|
bmp180 = ["bao1x-hal/bmp180"]
|
|
board-baosec = ["bao1x-hal/board-baosec"]
|
|
board-baosor = ["bao1x-hal/board-baosor"]
|
|
board-dabao = ["bao1x-hal/board-dabao"]
|
|
|
|
accel-kbd = []
|
|
oem-baosec-lite = ["bao1x-hal/oem-baosec-lite"]
|
|
|
|
with-duart = ["bao1x-hal/debug-print-duart"]
|
|
default = ["app-uart", "utralib"]
|