mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00

* 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>
50 lines
1.5 KiB
TOML
50 lines
1.5 KiB
TOML
[package]
|
|
name = "esp-hal-procmacros"
|
|
version = "0.8.0"
|
|
edition = "2021"
|
|
rust-version = "1.76.0"
|
|
description = "Procedural macros for esp-hal"
|
|
repository = "https://github.com/esp-rs/esp-hal"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["embassy", "has-ulp-core", "interrupt", "ram", "is-ulp-core"]
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
darling = "0.20.5"
|
|
document-features = "0.2.8"
|
|
litrs = "0.4.1"
|
|
object = { version = "0.32.2", optional = true }
|
|
proc-macro-crate = "3.1.0"
|
|
proc-macro-error = "1.0.4"
|
|
proc-macro2 = "1.0.78"
|
|
quote = "1.0.35"
|
|
syn = { version = "2.0.48", features = ["extra-traits", "full"] }
|
|
|
|
[features]
|
|
## Provide a `#[main]` procmacro to mark the entry point for Embassy applications.
|
|
embassy = []
|
|
## Provide enum dispatch helpers.
|
|
enum-dispatch = []
|
|
## Provide an `#[interrupt]` procmacro for defining interrupt service routines.
|
|
interrupt = []
|
|
## Provide a `#[ram]` procmacro to place functions in RAM instead of flash.
|
|
ram = []
|
|
## Indicates the target devices has RTC slow memory available.
|
|
rtc_slow = []
|
|
|
|
#! ### Low-power Core Feature Flags
|
|
## Indicate that the SoC contains an LP core.
|
|
has-lp-core = ["dep:object"]
|
|
## Indicate that the SoC contains a ULP core.
|
|
has-ulp-core = ["dep:object"]
|
|
## Provide an `#[entry]` macro for running applications on the ESP32-C6/P4's
|
|
## LP core.
|
|
is-lp-core = []
|
|
## Provide an `#[entry]` macro for running applications on the ESP32-S2/S3's
|
|
## ULP core.
|
|
is-ulp-core = []
|