2021-03-29 02:11:32 +00:00
|
|
|
[package]
|
|
|
|
name = "embassy-rp"
|
|
|
|
version = "0.1.0"
|
2022-06-18 00:15:48 +00:00
|
|
|
edition = "2021"
|
2021-03-29 02:11:32 +00:00
|
|
|
|
2022-04-05 19:05:09 +00:00
|
|
|
[package.metadata.embassy_docs]
|
|
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-rp-v$VERSION/embassy-rp/src/"
|
2022-06-26 21:55:38 +00:00
|
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-rp/src/"
|
2022-09-16 14:45:59 +00:00
|
|
|
features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "time-driver"]
|
2022-04-05 19:05:09 +00:00
|
|
|
flavors = [
|
|
|
|
{ name = "rp2040", target = "thumbv6m-none-eabi" },
|
|
|
|
]
|
|
|
|
|
2021-03-29 02:11:32 +00:00
|
|
|
[features]
|
2022-09-27 11:09:56 +00:00
|
|
|
defmt = ["dep:defmt", "embassy-usb-driver?/defmt"]
|
2021-07-14 20:19:04 +00:00
|
|
|
|
|
|
|
# Reexport the PAC for the currently enabled chip at `embassy_rp::pac`.
|
2022-05-09 14:56:28 +00:00
|
|
|
# This is unstable because semver-minor (non-breaking) releases of embassy-rp may major-bump (breaking) the PAC version.
|
2021-07-14 20:19:04 +00:00
|
|
|
# If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC.
|
|
|
|
# There are no plans to make this stable.
|
|
|
|
unstable-pac = []
|
|
|
|
|
2022-09-09 10:45:03 +00:00
|
|
|
time-driver = []
|
|
|
|
|
2022-09-23 04:38:47 +00:00
|
|
|
rom-func-cache = []
|
2022-09-26 17:52:55 +00:00
|
|
|
intrinsics = []
|
2022-09-23 04:38:47 +00:00
|
|
|
rom-v2-intrinsics = []
|
|
|
|
|
2022-02-15 16:28:48 +00:00
|
|
|
# Enable nightly-only features
|
2022-09-27 11:09:56 +00:00
|
|
|
nightly = ["embassy-executor/nightly", "embedded-hal-1", "embedded-hal-async", "embassy-embedded-hal/nightly", "dep:embassy-usb-driver", "dep:embedded-io"]
|
2022-02-15 16:28:48 +00:00
|
|
|
|
|
|
|
# Implement embedded-hal 1.0 alpha traits.
|
|
|
|
# Implement embedded-hal-async traits if `nightly` is set as well.
|
|
|
|
unstable-traits = ["embedded-hal-1"]
|
|
|
|
|
2021-03-29 02:11:32 +00:00
|
|
|
[dependencies]
|
2022-08-22 19:46:09 +00:00
|
|
|
embassy-sync = { version = "0.1.0", path = "../embassy-sync" }
|
2022-08-17 21:40:16 +00:00
|
|
|
embassy-executor = { version = "0.1.0", path = "../embassy-executor" }
|
2022-09-01 22:58:31 +00:00
|
|
|
embassy-time = { version = "0.1.0", path = "../embassy-time", features = [ "tick-hz-1_000_000" ] }
|
2022-09-22 14:48:35 +00:00
|
|
|
embassy-futures = { version = "0.1.0", path = "../embassy-futures" }
|
2022-08-22 14:22:37 +00:00
|
|
|
embassy-cortex-m = { version = "0.1.0", path = "../embassy-cortex-m", features = ["prio-bits-2"]}
|
2021-07-29 11:44:51 +00:00
|
|
|
embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
|
2022-07-08 22:32:55 +00:00
|
|
|
embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" }
|
2022-09-27 11:09:56 +00:00
|
|
|
embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver", optional = true }
|
2022-08-14 21:16:06 +00:00
|
|
|
atomic-polyfill = "1.0.1"
|
2021-11-15 16:08:51 +00:00
|
|
|
defmt = { version = "0.3", optional = true }
|
2021-09-10 22:10:46 +00:00
|
|
|
log = { version = "0.4.14", optional = true }
|
2022-08-18 08:14:37 +00:00
|
|
|
nb = "1.0.0"
|
|
|
|
cfg-if = "1.0.0"
|
2021-08-18 22:56:11 +00:00
|
|
|
cortex-m-rt = ">=0.6.15,<0.8"
|
2022-08-14 21:16:06 +00:00
|
|
|
cortex-m = "0.7.6"
|
|
|
|
critical-section = "1.1"
|
2022-07-10 04:47:08 +00:00
|
|
|
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
|
2022-09-16 04:45:27 +00:00
|
|
|
chrono = { version = "0.4", default-features = false, optional = true }
|
2022-08-26 07:05:12 +00:00
|
|
|
embedded-io = { version = "0.3.0", features = ["async"], optional = true }
|
2021-03-29 02:11:32 +00:00
|
|
|
|
2022-08-24 21:43:28 +00:00
|
|
|
rp2040-pac2 = { git = "https://github.com/embassy-rs/rp2040-pac2", rev="017e3c9007b2d3b6965f0d85b5bf8ce3fa6d7364", features = ["rt"] }
|
|
|
|
#rp2040-pac2 = { path = "../../rp2040-pac2", features = ["rt"] }
|
2022-02-15 16:28:48 +00:00
|
|
|
|
|
|
|
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
|
2022-04-22 17:58:24 +00:00
|
|
|
embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.8", optional = true}
|
2022-05-29 20:34:08 +00:00
|
|
|
embedded-hal-async = { version = "0.1.0-alpha.1", optional = true}
|