38 lines
1.8 KiB
TOML
38 lines
1.8 KiB
TOML
[package]
|
|
name = "esp-hal-common"
|
|
version = "0.1.0"
|
|
authors = [
|
|
"Jesse Braham <jesse@beta7.io>",
|
|
"Björn Quentin <bjoern.quentin@mobile-j.de>",
|
|
]
|
|
edition = "2021"
|
|
description = "HAL implementations for peripherals common among Espressif devices; should not be used directly"
|
|
repository = "https://github.com/esp-rs/esp-hal"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[dependencies]
|
|
embedded-hal = { version = "0.2", features = ["unproven"] }
|
|
nb = "1.0"
|
|
paste = "1.0"
|
|
riscv = { version = "0.7", optional = true }
|
|
void = { version = "1.0", default-features = false }
|
|
xtensa-lx = { version = "0.6.0", optional = true }
|
|
xtensa-lx-rt = { version = "0.9.0", optional = true }
|
|
procmacros = { path = "../esp-hal-procmacros", package = "esp-hal-procmacros" }
|
|
# IMPORTANT:
|
|
# Each supported device MUST have its PAC included below along with a
|
|
# corresponding feature.
|
|
esp32_pac = { package = "esp32", git = "https://github.com/esp-rs/esp-pacs.git", branch = "with_source", optional = true }
|
|
esp32c3_pac = { package = "esp32c3", git = "https://github.com/esp-rs/esp-pacs.git", branch = "with_source", optional = true }
|
|
esp32s2_pac = { package = "esp32s2", git = "https://github.com/esp-rs/esp-pacs.git", branch = "with_source", optional = true }
|
|
esp32s3_pac = { package = "esp32s3", git = "https://github.com/esp-rs/esp-pacs.git", branch = "with_source", optional = true }
|
|
|
|
[features]
|
|
esp32 = ["esp32_pac", "esp32_pac/rt", "xtensa-lx/esp32", "xtensa-lx-rt/esp32", "procmacros/rtc_slow", "dual_core"]
|
|
esp32c3 = ["esp32c3_pac", "esp32c3_pac/rt", "riscv", "single_core"]
|
|
esp32s2 = ["esp32s2_pac", "esp32s2_pac/rt", "xtensa-lx/esp32", "xtensa-lx-rt/esp32s2", "procmacros/rtc_slow", "single_core"]
|
|
esp32s3 = ["esp32s3_pac", "esp32s3_pac/rt", "xtensa-lx/esp32", "xtensa-lx-rt/esp32s3", "procmacros/rtc_slow", "dual_core"]
|
|
|
|
single_core = []
|
|
dual_core = []
|