Cargo Features
[dependencies]
esp32-hal = { version = "0.18.1", default-features = false, features = ["async", "bluetooth", "debug", "defmt", "eh1", "embedded-io", "log", "rt", "ufmt", "vectored", "xtal-26mhz", "xtal-40mhz", "embassy", "embassy-executor-thread", "embassy-executor-interrupt", "embassy-integrated-timers", "embassy-time-timg0", "psram", "psram-2m", "psram-4m", "psram-8m"] }
- default = embassy-integrated-timers, rt, vectored, xtal-40mhz
-
These default features are set whenever
esp32-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
- bluetooth
- 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 - 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
- log
-
Enables log of esp-hal-common and esp-println
esp-hal-common:
Enable logging
- rt default
-
Enables rt-xtensa of esp-hal-common
- ufmt
-
Enables ufmt of esp-hal-common
- vectored default
-
Enables vectored of esp-hal-common
- xtal-26mhz
-
Enables xtal-26mhz of esp-hal-common
esp-hal-common:
Crystal frequency selection (ESP32 and ESP32-C2 only!)
- xtal-40mhz default
-
Enables xtal-40mhz of esp-hal-common
- embassy
-
Embassy support
Enables embassy of esp-hal-common
- embassy-executor-thread
-
Enables embassy-executor-thread of esp-hal-common
- embassy-executor-interrupt
-
Enables embassy-executor-interrupt of esp-hal-common
- embassy-integrated-timers default
-
Enables embassy-integrated-timers of esp-hal-common
- 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
- psram psram-2m? psram-4m? psram-8m?
-
PSRAM support
- psram-2m = psram
-
Enables psram-2m of esp-hal-common
esp-hal-common:
PSRAM support
- psram-4m = psram
-
Enables psram-4m of esp-hal-common
- psram-8m = psram
-
Enables psram-8m of esp-hal-common