2021-03-29 04:11:32 +02:00
|
|
|
[package]
|
|
|
|
name = "embassy-rp"
|
|
|
|
version = "0.1.0"
|
2022-06-18 02:15:48 +02:00
|
|
|
edition = "2021"
|
2022-10-07 12:41:56 +02:00
|
|
|
license = "MIT OR Apache-2.0"
|
2021-03-29 04:11:32 +02:00
|
|
|
|
2022-04-05 21:05:09 +02:00
|
|
|
[package.metadata.embassy_docs]
|
|
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-rp-v$VERSION/embassy-rp/src/"
|
2022-06-26 23:55:38 +02:00
|
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-rp/src/"
|
2022-09-16 16:45:59 +02:00
|
|
|
features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "time-driver"]
|
2022-04-05 21:05:09 +02:00
|
|
|
flavors = [
|
|
|
|
{ name = "rp2040", target = "thumbv6m-none-eabi" },
|
|
|
|
]
|
|
|
|
|
2021-03-29 04:11:32 +02:00
|
|
|
[features]
|
2023-06-08 18:00:19 +02:00
|
|
|
default = [ "rt" ]
|
|
|
|
rt = [ "rp-pac/rt" ]
|
2023-05-29 21:30:28 +02:00
|
|
|
|
2023-07-28 13:23:22 +02:00
|
|
|
defmt = ["dep:defmt", "embassy-usb-driver?/defmt", "embassy-hal-internal/defmt"]
|
2021-07-14 22:19:04 +02:00
|
|
|
|
2022-12-10 12:57:45 +01:00
|
|
|
# critical section that is safe for multicore use
|
|
|
|
critical-section-impl = ["critical-section/restore-state-u8"]
|
|
|
|
|
2021-07-14 22:19:04 +02:00
|
|
|
# Reexport the PAC for the currently enabled chip at `embassy_rp::pac`.
|
2022-05-09 16:56:28 +02:00
|
|
|
# This is unstable because semver-minor (non-breaking) releases of embassy-rp may major-bump (breaking) the PAC version.
|
2021-07-14 22:19:04 +02: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 12:45:03 +02:00
|
|
|
time-driver = []
|
|
|
|
|
2022-09-23 06:38:47 +02:00
|
|
|
rom-func-cache = []
|
2022-09-26 19:52:55 +02:00
|
|
|
intrinsics = []
|
2022-09-23 06:38:47 +02:00
|
|
|
rom-v2-intrinsics = []
|
|
|
|
|
2023-05-09 18:36:17 +02:00
|
|
|
# boot2 flash chip support. if none of these is enabled we'll default to w25q080 (used on the pico)
|
|
|
|
boot2-at25sf128a = []
|
|
|
|
boot2-gd25q64cs = []
|
|
|
|
boot2-generic-03h = []
|
|
|
|
boot2-is25lp080 = []
|
|
|
|
boot2-ram-memcpy = []
|
|
|
|
boot2-w25q080 = []
|
|
|
|
boot2-w25x10cl = []
|
|
|
|
|
2023-07-31 19:13:10 +02:00
|
|
|
# Allow using QSPI pins as GPIO pins. This is mostly not what you want (because your flash lives there)
|
|
|
|
# and would add both code and memory overhead when enabled needlessly.
|
|
|
|
qspi-as-gpio = []
|
|
|
|
|
2023-06-06 00:06:32 +02:00
|
|
|
# Indicate code is running from RAM.
|
|
|
|
# Set this if all code is in RAM, and the cores never access memory-mapped flash memory through XIP.
|
|
|
|
# This allows the flash driver to not force pausing execution on both cores when doing flash operations.
|
|
|
|
run-from-ram = []
|
|
|
|
|
2022-02-15 17:28:48 +01:00
|
|
|
# Enable nightly-only features
|
2023-08-07 13:43:09 +02:00
|
|
|
nightly = ["embedded-hal-1", "embedded-hal-async", "embedded-storage-async", "embassy-embedded-hal/nightly", "dep:embassy-usb-driver", "dep:embedded-io-async"]
|
2022-02-15 17:28:48 +01:00
|
|
|
|
|
|
|
# Implement embedded-hal 1.0 alpha traits.
|
|
|
|
# Implement embedded-hal-async traits if `nightly` is set as well.
|
2022-09-29 11:02:43 +02:00
|
|
|
unstable-traits = ["embedded-hal-1", "embedded-hal-nb"]
|
2022-02-15 17:28:48 +01:00
|
|
|
|
2021-03-29 04:11:32 +02:00
|
|
|
[dependencies]
|
2023-09-14 18:26:00 +02:00
|
|
|
embassy-sync = { version = "0.3.0", path = "../embassy-sync" }
|
2023-08-28 17:00:18 +02:00
|
|
|
embassy-time = { version = "0.1.3", path = "../embassy-time", features = [ "tick-hz-1_000_000" ] }
|
2022-09-22 16:48:35 +02:00
|
|
|
embassy-futures = { version = "0.1.0", path = "../embassy-futures" }
|
2023-07-28 13:23:22 +02:00
|
|
|
embassy-hal-internal = {version = "0.1.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] }
|
2022-07-09 00:32:55 +02:00
|
|
|
embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" }
|
2022-09-27 13:09:56 +02:00
|
|
|
embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver", optional = true }
|
2022-08-14 23:16:06 +02:00
|
|
|
atomic-polyfill = "1.0.1"
|
2021-11-15 17:08:51 +01:00
|
|
|
defmt = { version = "0.3", optional = true }
|
2021-09-11 00:10:46 +02:00
|
|
|
log = { version = "0.4.14", optional = true }
|
2022-08-18 10:14:37 +02:00
|
|
|
nb = "1.0.0"
|
|
|
|
cfg-if = "1.0.0"
|
2021-08-19 00:56:11 +02:00
|
|
|
cortex-m-rt = ">=0.6.15,<0.8"
|
2022-08-14 23:16:06 +02:00
|
|
|
cortex-m = "0.7.6"
|
2022-12-10 12:57:45 +01:00
|
|
|
critical-section = "1.1"
|
2022-07-10 06:47:08 +02:00
|
|
|
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
|
2022-09-16 06:45:27 +02:00
|
|
|
chrono = { version = "0.4", default-features = false, optional = true }
|
2023-10-03 22:15:02 +02:00
|
|
|
embedded-io = { version = "0.6.0" }
|
|
|
|
embedded-io-async = { version = "0.6.0", optional = true }
|
2022-09-16 12:40:39 +02:00
|
|
|
embedded-storage = { version = "0.3" }
|
2023-07-25 23:54:33 +02:00
|
|
|
embedded-storage-async = { version = "0.4.0", optional = true }
|
2022-11-30 02:46:04 +01:00
|
|
|
rand_core = "0.6.4"
|
2023-04-21 00:57:28 +02:00
|
|
|
fixed = "1.23.1"
|
2021-03-29 04:11:32 +02:00
|
|
|
|
2023-06-29 02:08:55 +02:00
|
|
|
rp-pac = { version = "6" }
|
2022-02-15 17:28:48 +01:00
|
|
|
|
|
|
|
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
|
2023-08-16 00:40:56 +02:00
|
|
|
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.1", optional = true}
|
|
|
|
embedded-hal-async = { version = "=1.0.0-rc.1", optional = true}
|
|
|
|
embedded-hal-nb = { version = "=1.0.0-rc.1", optional = true}
|
2022-07-27 22:45:46 +02:00
|
|
|
|
2023-04-26 22:15:10 +02:00
|
|
|
pio-proc = {version= "0.2" }
|
|
|
|
pio = {version= "0.2.1" }
|
2023-05-09 18:36:17 +02:00
|
|
|
rp2040-boot2 = "0.3"
|
2023-05-29 21:30:28 +02:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-08-23 20:34:37 +02:00
|
|
|
embassy-executor = { version = "0.3.0", path = "../embassy-executor", features = ["nightly", "arch-std", "executor-thread"] }
|
2023-06-01 01:32:11 +02:00
|
|
|
static_cell = "1.1"
|