[package] name = "esp-hal-common" version = "0.1.0" authors = [ "Jesse Braham ", "Björn Quentin ", ] edition = "2021" description = "HAL implementations for peripherals common among Espressif devices; should not be used directly" repository = "https://github.com/esp-rs/esp-hal" license = "MIT OR Apache-2.0" [dependencies] embedded-hal = { version = "0.2", features = ["unproven"] } nb = "1.0" paste = "1.0" riscv = { version = "0.7", optional = true } void = { version = "1.0", default-features = false } xtensa-lx = { version = "0.4", optional = true } # IMPORTANT: # Each supported device MUST have its PAC included below along with a # corresponding feature. esp32_pac = { package = "esp32", git = "https://github.com/jessebraham/esp32.git", branch = "develop", optional = true } esp32c3_pac = { package = "esp32c3", git = "https://github.com/jessebraham/esp32c3.git", branch = "develop", optional = true } esp32s2_pac = { package = "esp32s2", git = "https://github.com/jessebraham/esp32s2.git", branch = "develop", optional = true } esp32s3_pac = { package = "esp32s3", git = "https://github.com/jessebraham/esp32s3.git", branch = "develop", optional = true } [features] esp32 = ["esp32_pac", "esp32_pac/rt", "xtensa-lx/lx6"] esp32c3 = ["esp32c3_pac", "esp32c3_pac/rt", "riscv"] esp32s2 = ["esp32s2_pac", "esp32s2_pac/rt", "xtensa-lx/lx6"] # FIXME esp32s3 = ["esp32s3_pac", "esp32s3_pac/rt", "xtensa-lx/lx6"] # FIXME