Cargo Features
[dependencies]
esp32h2-hal = { version = "0.6.1", default-features = false, features = ["async", "debug", "defmt", "direct-vectoring", "eh1", "embedded-io", "interrupt-preemption", "log", "rt", "ufmt", "vectored", "flip-link", "zero-rtc-bss", "init-data", "init-rtc-data", "embassy", "embassy-executor-interrupt", "embassy-executor-thread", "embassy-integrated-timers", "embassy-time-systick", "embassy-time-timg0"] }
- default = embassy-integrated-timers, rt, vectored, zero-rtc-bss
-
These default features are set whenever
esp32h2-hal
is added without
somewhere in the dependency tree.default-features = false - async
-
Enables async of esp-hal-common
esp-hal-common:
Support for asynchronous operation, implementing traits from
embedded-hal-async
andembedded-io-async
- debug
-
Enables debug of esp-hal-common
esp-hal-common:
Enable the
impl-register-debug
feature for the selected PAC - defmt
-
Enables defmt-espflash of esp-println and defmt of esp-hal-common
esp-hal-common:
Enable support for
defmt
, foresp-hal-common
and also for all our dependencies - direct-vectoring
-
Enables direct-vectoring of esp-hal-common
esp-hal-common:
Interrupt-related feature:
- Use direct interrupt vectoring (RISC-V only!)
- Use interrupt preemption (RISC-V only!)
- Use vectored interrupts (calling the handlers defined in the PAC) - eh1
-
Enables eh1 of esp-hal-common
esp-hal-common:
Trait implementation features:
- Implement the
embedded-hal@1.0.0-rc.x
traits (and friends) - Implement the
embedded-io
traits where able - Implement the
ufmt_write::Write
trait where able
- Implement the
- embedded-io
-
Enables embedded-io of esp-hal-common
- interrupt-preemption
-
Enables interrupt-preemption of esp-hal-common
- log
-
Enables log of esp-hal-common and esp-println
esp-hal-common:
Enable logging
- rt default
-
Enables rt-riscv of esp-hal-common
esp-hal-common:
Runetime support
- ufmt
-
Enables ufmt of esp-hal-common
- vectored default
-
Enables vectored of esp-hal-common
- flip-link
-
Enables flip-link of esp-hal-common
esp-hal-common:
Only certain chips support flip-link (ESP32-C6 and ESPS32-H2)
- zero-rtc-bss default
-
Initialize / clear data sections and RTC memory
Enables rv-zero-rtc-bss of esp-hal-common
- init-data
-
Enables rv-init-data of esp-hal-common
esp-hal-common:
Initialize / clear data sections and RTC memory
- init-rtc-data
-
Enables rv-init-rtc-data of esp-hal-common
- embassy
-
Embassy support
Enables embassy of esp-hal-common
- embassy-executor-interrupt
-
Enables embassy-executor-interrupt of esp-hal-common
- embassy-executor-thread
-
Enables embassy-executor-thread of esp-hal-common
- embassy-integrated-timers default
-
Enables embassy-integrated-timers of esp-hal-common
- embassy-time-systick
-
Enables embassy-time-systick of esp-hal-common and tick-hz-16_000_000 of embassy-time
embassy-time:
16.0MHz Tick Rate
- embassy-time-timg0
-
Enables embassy-time-timg0 of esp-hal-common and tick-hz-1_000_000 of embassy-time
embassy-time:
1.0MHz Tick Rate