esp-hal/esp32c2-hal/Cargo.toml
onsdagens d6d5e0c86b
Adding direct vector table hooking support for RISC-V's (#621)
* direct vectoring support added

* provide minimal handlers for hooking the vector table directly

* changed direct vectoring interrupt enable interface to map to CPU interrupt

* direct vectoring interrupt nesting

* removed unused dependency

* added tentative c2 and c6 support for direct vector table hooking

* added direct vectoring examples

* added direct vectoring examples

* updated changelog

* added direct vectoring to CI

* Added H2 support and example, moved helpers to esp-hal-common

* Added H2 direct vectoring example to CI

* Removed remnants of removed feature

* C6 and H2 examples fixed

* C6 and H2 examples fixed

* C6 and H2 examples fixed

* Comment fixed

* Added preemption flag to RT

---------

Co-authored-by: Scott Mabin <scott@mabez.dev>
2023-08-01 16:28:40 +01:00

99 lines
3.2 KiB
TOML

[package]
name = "esp32c2-hal"
version = "0.8.0"
authors = [
"Jesse Braham <jesse@beta7.io>",
"Björn Quentin <bjoern.quentin@mobile-j.de>",
]
edition = "2021"
rust-version = "1.65.0"
description = "HAL for ESP32-C2 microcontrollers"
repository = "https://github.com/esp-rs/esp-hal"
license = "MIT OR Apache-2.0"
keywords = [
"embedded",
"embedded-hal",
"esp",
"esp32c2",
"no-std",
]
categories = [
"embedded",
"hardware-support",
"no-std",
]
[dependencies]
embassy-time = { version = "0.1.2", features = ["nightly"], optional = true }
embedded-hal = { version = "0.2.7", features = ["unproven"] }
embedded-hal-1 = { version = "=1.0.0-alpha.11", optional = true, package = "embedded-hal" }
embedded-hal-async = { version = "=0.2.0-alpha.2", optional = true }
embedded-hal-nb = { version = "=1.0.0-alpha.3", optional = true }
esp-hal-common = { version = "0.10.0", features = ["esp32c2"], path = "../esp-hal-common" }
[dev-dependencies]
critical-section = "1.1.1"
embassy-executor = { version = "0.2.0", features = ["nightly", "integrated-timers", "arch-riscv32", "executor-thread"] }
embedded-graphics = "0.8.0"
esp-backtrace = { version = "0.7.0", features = ["esp32c2", "panic-handler", "exception-handler", "print-uart"] }
esp-println = { version = "0.5.0", features = ["esp32c2"] }
lis3dh-async = "0.7.0"
sha2 = { version = "0.10.7", default-features = false}
ssd1306 = "0.8.0"
static_cell = "1.1.0"
heapless = "0.7.16"
[features]
default = ["rt", "vectored", "xtal40mhz"]
debug = ["esp-hal-common/debug"]
direct-boot = ["esp-hal-common/rv-init-data"]
eh1 = ["esp-hal-common/eh1", "dep:embedded-hal-1", "dep:embedded-hal-nb"]
rt = []
ufmt = ["esp-hal-common/ufmt"]
vectored = ["esp-hal-common/vectored"]
async = ["esp-hal-common/async", "embedded-hal-async"]
embassy = ["esp-hal-common/embassy"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
xtal26mhz = ["esp-hal-common/esp32c2_26mhz"]
xtal40mhz = ["esp-hal-common/esp32c2_40mhz"]
interrupt-preemption = ["esp-hal-common/interrupt-preemption"]
direct-vectoring = ["esp-hal-common/direct-vectoring"]
[[example]]
name = "spi_eh1_loopback"
required-features = ["eh1"]
[[example]]
name = "spi_eh1_device_loopback"
required-features = ["eh1"]
[[example]]
name = "embassy_hello_world"
required-features = ["embassy"]
[[example]]
name = "embassy_wait"
required-features = ["embassy", "async"]
[[example]]
name = "embassy_spi"
required-features = ["embassy", "async"]
[[example]]
name = "interrupt_preemption"
required-features = ["interrupt-preemption"]
[[example]]
name = "embassy_serial"
required-features = ["embassy", "async"]
[[example]]
name = "embassy_i2c"
required-features = ["embassy", "async"]
[[example]]
name = "direct-vectoring"
required-features = ["direct-vectoring"]