esp-hal VS esp-pacs

Compare esp-hal vs esp-pacs and see what are their differences.

esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers (by esp-rs)

esp-pacs

Peripheral Access Crates for Espressif SoCs and modules (by esp-rs)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
esp-hal esp-pacs
3 1
565 91
3.7% -
9.8 8.6
7 days ago 6 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of esp-hal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-30.
  • Rust on Espressif chips – 29-09-2023
    2 projects | news.ycombinator.com | 30 Sep 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
    7 projects | dev.to | 15 Sep 2023
    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
    2 projects | /r/rust | 13 Sep 2022
    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

esp-pacs

Posts with mentions or reviews of esp-pacs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-15.
  • The Embedded Rust ESP Development Ecosystem
    7 projects | dev.to | 15 Sep 2023
    The no-std ecosystem follows the same layering approach that exists within embedded Rust. In embedded Rust, there are several levels of abstraction that are introduced on top of microcontroller hardware as shown in the figure below. The first level is the peripheral access crate (PAC) which gives us access to low-level microcontroller registers at the bit level. It's also worth noting that the PAC is specific to a particular microcontroller series. For ESP devices the different PACs are captured in the esp-pacs repository. The microarchitecture crate is at a similar abstraction level to the PAC but specific to processor core (Ex. RISC-V) functions.

What are some alternatives?

When comparing esp-hal and esp-pacs you can also consider the following projects:

esp32-phantom - ESP32 Rust-based WiFi and BLE sandbox

esp-wifi - A WiFi, Bluetooth and ESP-NOW driver for use with Espressif chips and bare-metal Rust

linux-embedded-hal - Implementation of the `embedded-hal` traits for Linux devices

esp-backtrace - backtrace for ESP32 bare-metal

esp-idf-hal - embedded-hal implementation for Rust on ESP32 and ESP-IDF

esp-storage - implementation of embedded-storage traits to access unencrypted ESP32 flash

esp-alloc - A simple `no_std` heap allocator for RISC-V and Xtensa processors from Espressif

novusk - A kernel written in Rust

esp-println - Provides print! and println! implementations various Espressif devices

atsamd - Target atsamd microcontrollers using Rust