* Remove the chip-specific HAL packages * Update some doc comments which were missed, fix build script for ESP32/S2 * Refactor/update `esp-hal-procmacros` * Create the `examples` package, add back all of the previously existing examples * Use `xtask` automation package for checking examples and documentation in CI * Combine the `rt-riscv` and `rt-xtensa` features into a single `rt` feature * Bump MSRV to 1.76.0 (shocking!) * Re-document the features for the HAL * No need to re-export the `riscv` package like this * Make clippy happy, improve CI clippy checks * Update `CHANGELOG.md` * riscv: zero bss Co-authored-by: Björn Quentin <bjoernQ@users.noreply.github.com> * Address a number of review comments * Correct pin number in `hello_rgb` example for ESP32-C3 * Address the remaining review comments * More small tweaks/improvements * Fix RMT examples (#11) * Fix RMT examples * Remove logger-init * Make I2S examples work on ESP32 (#12) * Make I2S examples work on ESP32 * Remove logger init * Fix the direct-vectoring examples on all RISCV chips (#10) * Update GPIOs for some examples... * Embassy timer example fixes (#13) * Switch to generic queue instead of integrated for all examples * changelog * Update GPIO in another example, make `rustfmt` happy * Fix ESP32-S2 PSRAM * Avoid UART0 and SPI flash pins (#15) * Avoid UART0 and SPI flash pins * Fix spi_eh1_device_loopback for non-ESP32 * Update examples/src/bin/gpio_interrupt.rs Co-authored-by: Juraj Sadel <jurajsadel@gmail.com> --------- Co-authored-by: Juraj Sadel <jurajsadel@gmail.com> --------- Co-authored-by: Scott Mabin <scott@mabez.dev> Co-authored-by: Björn Quentin <bjoernQ@users.noreply.github.com> Co-authored-by: bjoernQ <bjoern.quentin@mobile-j.de> Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
69 lines
2.1 KiB
TOML
69 lines
2.1 KiB
TOML
[package]
|
|
name = "esp-lp-hal"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.76.0"
|
|
description = "HAL for low-power RISC-V coprocessors found in ESP32 devices"
|
|
repository = "https://github.com/esp-rs/esp-hal"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
keywords = [
|
|
"embedded",
|
|
"embedded-hal",
|
|
"esp",
|
|
"esp32",
|
|
"no-std",
|
|
]
|
|
categories = [
|
|
"embedded",
|
|
"hardware-support",
|
|
"no-std",
|
|
]
|
|
|
|
[dependencies]
|
|
cfg-if = "1.0.0"
|
|
embedded-hal-02 = { version = "0.2.7", package = "embedded-hal", optional = true, features = ["unproven"] }
|
|
embedded-hal-1 = { version = "1.0.0", package = "embedded-hal", optional = true }
|
|
esp32c6-lp = { git = "https://github.com/esp-rs/esp-pacs", rev = "ef39b1c", features = ["critical-section"], optional = true }
|
|
esp32s2-ulp = { version = "0.1.0", features = ["critical-section"], optional = true }
|
|
esp32s3-ulp = { version = "0.1.0", features = ["critical-section"], optional = true }
|
|
nb = { version = "1.1.0", optional = true }
|
|
paste = { version = "1.0.14", optional = true }
|
|
procmacros = { package = "esp-hal-procmacros", path = "../esp-hal-procmacros" }
|
|
riscv = { version = "0.11.0", features = ["critical-section-single-hart"] }
|
|
|
|
[dev-dependencies]
|
|
panic-halt = "0.2.0"
|
|
|
|
[features]
|
|
default = ["embedded-hal-02"]
|
|
|
|
embedded-hal-02 = ["dep:embedded-hal-02"]
|
|
embedded-hal-1 = ["dep:embedded-hal-1"]
|
|
|
|
esp32c6 = ["dep:esp32c6-lp", "procmacros/is-lp-core", "dep:nb", "dep:paste"]
|
|
esp32s2 = ["dep:esp32s2-ulp", "procmacros/is-ulp-core"]
|
|
esp32s3 = ["dep:esp32s3-ulp", "procmacros/is-ulp-core"]
|
|
|
|
debug = [
|
|
"esp32c6-lp?/impl-register-debug",
|
|
"esp32s2-ulp?/impl-register-debug",
|
|
"esp32s3-ulp?/impl-register-debug",
|
|
]
|
|
|
|
[[example]]
|
|
name = "blinky"
|
|
required-features = ["embedded-hal-02"]
|
|
|
|
[[example]]
|
|
name = "uart"
|
|
required-features = ["embedded-hal-02", "esp32c6"]
|
|
|
|
[[example]]
|
|
name = "i2c"
|
|
required-features = ["embedded-hal-02", "esp32c6"]
|
|
|
|
[patch.crates-io]
|
|
esp32s2-ulp = { git = "https://github.com/esp-rs/esp-pacs", rev = "bcab40a" }
|
|
esp32s3-ulp = { git = "https://github.com/esp-rs/esp-pacs", rev = "bcab40a" }
|