2021-01-23 01:18:12 +11:00
|
|
|
[package]
|
|
|
|
name = "rp2040-hal"
|
2022-08-26 19:05:56 +10:00
|
|
|
version = "0.6.0"
|
2021-12-20 06:22:15 +11:00
|
|
|
authors = ["The rp-rs Developers"]
|
2021-01-23 01:18:12 +11:00
|
|
|
edition = "2018"
|
2021-08-25 08:33:03 +10:00
|
|
|
homepage = "https://github.com/rp-rs/rp-hal"
|
2021-01-23 01:18:12 +11:00
|
|
|
description = "A Rust Embeded-HAL impl for the rp2040 microcontroller"
|
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
|
2022-11-13 00:26:32 +11:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
features = ["rt", "rom-v2-intrinsics", "defmt", "rtic-monotonic"]
|
|
|
|
targets = ["thumbv6m-none-eabi"]
|
|
|
|
|
2021-01-23 01:18:12 +11:00
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2021-05-24 12:08:42 +10:00
|
|
|
cortex-m = "0.7.2"
|
2022-03-13 12:35:59 +11:00
|
|
|
cortex-m-rt = ">=0.6.15,<0.8"
|
2021-09-09 17:55:30 +10:00
|
|
|
embedded-hal = { version = "0.2.5", features = ["unproven"] }
|
2022-09-29 07:41:38 +10:00
|
|
|
eh1_0_alpha = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true }
|
2022-08-19 05:14:51 +10:00
|
|
|
fugit = "0.3.6"
|
2021-09-16 00:32:00 +10:00
|
|
|
itertools = { version = "0.10.1", default-features = false }
|
2021-05-24 12:08:42 +10:00
|
|
|
nb = "1.0"
|
2022-10-19 07:11:24 +11:00
|
|
|
rp2040-pac = "0.4.0"
|
2021-05-24 12:08:42 +10:00
|
|
|
paste = "1.0"
|
2022-03-11 22:37:34 +11:00
|
|
|
pio = "0.2.0"
|
2022-03-13 12:35:59 +11:00
|
|
|
rp2040-hal-macros = { version = "0.1.0", path = "../rp2040-hal-macros" }
|
2022-08-03 05:43:00 +10:00
|
|
|
usb-device = "0.2.9"
|
2021-09-16 00:32:00 +10:00
|
|
|
vcell = "0.1"
|
|
|
|
void = { version = "1.0.2", default-features = false }
|
2021-09-26 20:51:01 +10:00
|
|
|
rand_core = "0.6.3"
|
2022-08-11 03:33:07 +10:00
|
|
|
critical-section = { version = "1.0.0" }
|
2021-04-25 07:18:57 +10:00
|
|
|
|
2021-11-29 21:15:20 +11:00
|
|
|
chrono = { version = "0.4", default-features = false, optional = true }
|
2021-11-08 23:23:28 +11:00
|
|
|
|
2022-05-09 19:22:41 +10:00
|
|
|
defmt = { version = ">=0.2.0, <0.4", optional = true }
|
|
|
|
|
2022-10-07 04:31:31 +11:00
|
|
|
rtic-monotonic = { version = "1.0.0", optional = true }
|
|
|
|
|
2021-04-25 07:18:57 +10:00
|
|
|
[dev-dependencies]
|
2021-09-15 15:07:25 +10:00
|
|
|
cortex-m-rt = "0.7"
|
2021-04-25 07:18:57 +10:00
|
|
|
panic-halt = "0.2.0"
|
2022-08-11 21:56:36 +10:00
|
|
|
rp2040-boot2 = "0.2.1"
|
2021-07-23 18:37:36 +10:00
|
|
|
hd44780-driver = "0.4.0"
|
2022-03-11 22:37:34 +11:00
|
|
|
pio-proc = "0.2.0"
|
2022-01-29 07:57:51 +11:00
|
|
|
dht-sensor = "0.2.1"
|
2021-07-07 19:33:36 +10:00
|
|
|
|
|
|
|
[features]
|
2022-10-03 11:43:09 +11:00
|
|
|
# Minimal startup / runtime for Cortex-M microcontrollers
|
2021-07-23 18:37:36 +10:00
|
|
|
rt = ["rp2040-pac/rt"]
|
2022-10-03 11:43:09 +11:00
|
|
|
|
|
|
|
# Memoize(cache) ROM function pointers on first use to improve performance
|
2022-01-30 11:46:45 +11:00
|
|
|
rom-func-cache = []
|
2022-10-03 11:43:09 +11:00
|
|
|
|
|
|
|
# Disable automatic mapping of language features (like floating point math) to ROM functions
|
2022-02-02 14:56:07 +11:00
|
|
|
disable-intrinsics = []
|
2022-10-03 11:43:09 +11:00
|
|
|
|
|
|
|
# This enables ROM functions for f64 math that were not present in the earliest RP2040s
|
2022-02-02 14:56:07 +11:00
|
|
|
rom-v2-intrinsics = []
|
2022-10-03 11:43:09 +11:00
|
|
|
|
|
|
|
# This enables a fix for USB errata 5: USB device fails to exit RESET state on busy USB bus.
|
|
|
|
# Only required for RP2040 B0 and RP2040 B1, but it also works for RP2040 B2 and above
|
|
|
|
rp2040-e5 = []
|
|
|
|
|
|
|
|
# critical section that is safe for multicore use
|
2022-08-11 03:33:07 +10:00
|
|
|
critical-section-impl = ["critical-section/restore-state-u8"]
|
2022-03-11 22:37:34 +11:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
# irq example uses cortex-m-rt::interrupt, need rt feature for that
|
|
|
|
name = "gpio_irq_example"
|
2022-10-29 08:15:32 +11:00
|
|
|
required-features = ["rt", "critical-section-impl"]
|
2022-08-11 22:07:34 +10:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
# vector_table example uses cortex-m-rt::interrupt, need rt feature for that
|
|
|
|
name = "vector_table"
|
2022-10-29 08:15:32 +11:00
|
|
|
required-features = ["rt", "critical-section-impl"]
|