esp-hal
OFMon
esp-hal | OFMon | |
---|---|---|
3 | 1 | |
565 | 34 | |
3.7% | - | |
9.8 | 10.0 | |
7 days ago | over 1 year ago | |
Rust | Rust | |
Apache License 2.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
esp-hal
-
Rust on Espressif chips – 29-09-2023
In the esp-hal, they appear to offer both sync and async I2C implementations, depending on what works best for an application. Since the async implementation is gated by a feature, it may not show up in the docs you linked.
Async implementation: https://github.com/esp-rs/esp-hal/blob/main/esp-hal-common/s...
You can also see the async feature mentioned here: https://docs.rs/crate/esp32s2-hal/latest/features
-
The Embedded Rust ESP Development Ecosystem
Going another level up the chain, we then have the hardware abstraction layer (HAL) crate. HAL crates are supposed to offer more portability and user-friendly API for a particular processor. For ESP devices the different hals are captured in the esp-hal repository. This occurs by implementing some common traits defined in what is referred to as the embedded-hal. Additionally, the device HAL attempts to incorporate mechanisms, or wrappers around lower-level functions, that are part of the Rust safety model.
-
How to write HALs and get into microcontroller programming
There is https://docs.rust-embedded.org/book/design-patterns/hal/index.html but I wonder what OP is missing in https://github.com/esp-rs/esp-hal
OFMon
-
Espressif advances with Rust – 30-06-2023
Afaik there while there are some OSS projects they aren't necessarily mature.
The no_std hal is still a bit of a moving target so it's not as beginner friendly, the most mature here seems to be the SlimeVR firmware: https://github.com/SlimeVR/SlimeVR-Rust/tree/main/firmware
For std hal there are a few more, OFMon being a good one: https://github.com/arashsm79/OFMon
What are some alternatives?
esp32-phantom - ESP32 Rust-based WiFi and BLE sandbox
dsm - Version Manager for the Dart SDK
linux-embedded-hal - Implementation of the `embedded-hal` traits for Linux devices
awesome-esp-rust - Curated list of resources for ESP32 development in the Rust programming language
esp-idf-hal - embedded-hal implementation for Rust on ESP32 and ESP-IDF
esp-pacs - Peripheral Access Crates for Espressif SoCs and modules
esp-storage - implementation of embedded-storage traits to access unencrypted ESP32 flash
esp-wifi - A WiFi, Bluetooth and ESP-NOW driver for use with Espressif chips and bare-metal Rust
esp-println - Provides print! and println! implementations various Espressif devices
atsamd - Target atsamd microcontrollers using Rust
esp-backtrace - backtrace for ESP32 bare-metal
espup - Tool for installing and maintaining Espressif Rust ecosystem.