Skip to content

embedded-hal implementation for Rust on ESP32 and ESP-IDF (adding I2S in camera slave mode)

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

questmaster/esp-idf-hal

 
 

Repository files navigation

This fork is used to implement the I2S peripheral in camera slave mode support.


An embedded-hal implementation for ESP32[-XX] + ESP-IDF

CI crates.io Documentation Matrix

  • This crate is intended for usage in ESP32[-XX] embedded projects that utilize and link with the ESP-IDF SDK.
  • For embedded projects that don't need Rust STD support, WiFi or BLE (and thus don't link with the ESP-IDF SDK), please check esp-hal.

For more information, check out:

Hardware Notes

Each chip has a number of GPIO pins which are generally used by the SPI0 and SPI1 peripherals in order to connect external PSRAM and/or SPI Flash memory. The datasheets explicitly state that these are not recommended for use, however this crate includes them anyways for completeness.

Please refer to the table below to determine the pins which are not recommended for use for your chip.

Chip GPIOs
ESP32 6 - 11, 16 - 17
ESP32-C2 12 - 17
ESP32-C3 12 - 17
ESP32-C6 24 - 30
ESP32-H2 15 - 21
ESP32-S2 26 - 32
ESP32-S3 26 - 32, 33 - 37*

* When using Octal Flash and/or Octal PSRAM

Examples

The examples could be built and flashed conveniently with cargo-espflash. To run ledc_simple on an ESP32-C3:

$ cargo espflash --release --target riscv32imc-esp-espidf --example ledc_simple --monitor /dev/ttyUSB0

In order to run the examples on other chips you will most likely need to adapt at least the used pins.

About

embedded-hal implementation for Rust on ESP32 and ESP-IDF (adding I2S in camera slave mode)

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 99.3%
  • Other 0.7%