16 breaking releases
0.18.1 | Mar 8, 2024 |
---|---|
0.17.0 | Dec 12, 2023 |
0.16.0 | Oct 31, 2023 |
0.13.0 | Jul 4, 2023 |
0.2.0 | Sep 23, 2020 |
#2228 in Embedded development
384 downloads per month
Used in 5 crates
2MB
48K
SLoC
esp32-hal
[!WARNING]
This package has been deprecated in favour of esp-hal.
Please refer to the migration guide for help with updating your projects to use the new 'esp-hal' package:
no_std
HAL for the ESP32 from Espressif.
Implements a number of the traits defined in embedded-hal.
This device uses the Xtensa ISA, which is not officially supported by the Rust compiler. In order to develop for this device, you must use the Rust compiler fork with Xtensa support, found at esp-rs/rust.
Please refer to the documentation for more information.
Documentation
Resources
- Datasheet
- Technical Reference Manual
- The Rust Programming Language
- The Embedded Rust Book
- The Rust on ESP Book
Getting Started
Installing the Rust Compiler
We provide a tool, espup, for easily installing the Rust toolchain with Xtensa support:
cargo install espup
espup install
Following installation of the Xtensa toolchain, if you are running a Unix-like operating system (macOS, Linux) then you must additionally export the necessary environment variables:
. $HOME/export-esp.sh
See the Installation chapter of The Rust on ESP Book for more details.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~11–19MB
~375K SLoC