GithubHelp home page GithubHelp logo

edgsousa / esp-hal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from esp-rs/esp-hal

0.0 0.0 0.0 2.72 MB

no_std Hardware Abstraction Layers for ESP32 microcontrollers

License: Apache License 2.0

Shell 0.02% Rust 99.93% Logos 0.05%

esp-hal's Introduction

esp-hal

GitHub Workflow Status MIT/Apache-2.0 licensed Matrix

Hardware Abstraction Layer crates for the ESP32, ESP32-C2/C3/C6, ESP32-H2, and ESP32-S2/S3 from Espressif.

These HALs are no_std; if you are looking for std support, please use esp-idf-hal instead.

If you have any questions, comments, or concerns, please open an issue, start a new discussion, or join us on Matrix. For additional information regarding any of the crates in this repository, please refer to the relevant crate's README.

Note

This project is still in the relatively early stages of development, and as such there should be no expectation of API stability. A significant number of peripherals currently have drivers implemented but have varying levels of functionality. For most basic tasks, this should be usable already, however some more advanced or uncommon features may not yet be implemented.

Getting Started

For information relating to the development of Rust applications on ESP devices, please first read The Rust on ESP Book.

For information about the HAL and how to use it in your own projects, please refer to the documentation on docs.rs for the relevant chip.

Resources

HAL Crates

Crate Documentation Technical Reference Manual Target
esp32-hal esp32-hal-docs ESP32 xtensa-esp32-none-elf
esp32c2-hal esp32c2-hal-docs ESP32-C2 riscv32imc-unknown-none-elf
esp32c3-hal esp32c3-hal-docs ESP32-C3 riscv32imc-unknown-none-elf
esp32c6-hal esp32c6-hal-docs ESP32-C6 riscv32imac-unknown-none-elf
esp32c6-lp-hal N/A N/A riscv32imac-unknown-none-elf
esp32h2-hal esp32h2-hal-docs ESP32-H2 riscv32imac-unknown-none-elf
esp32s2-hal esp32s2-hal-docs ESP32-S2 xtensa-esp32s2-none-elf
esp32s3-hal esp32s3-hal-docs ESP32-S3 xtensa-esp32s3-none-elf

Ancillary Crates

There are a number of other crates within the esp-rs organization which can be used in conjunction with esp-hal:

Crate Description
esp-alloc A simple no_std heap allocator
esp-backtrace Backtrace support for bare-metal applications
esp-ieee802154 Low-level IEEE802.15.4 driver for the ESP32-C6 and ESP32-H2
esp-println Provides print! and println! implementations
esp-storage Implementation of embedded-storage traits to access unencrypted flash memory
esp-wifi no_std Wi-Fi/BLE/ESP-NOW support

Git Hooks

We provide a simple pre-commit hook to verify the formatting of each package prior to committing changes. We strongly encourage use of this git hook.

The hook can be enabled by copying it in to the .git/hooks/ directory:

cp pre-commit .git/hooks/pre-commit

When using this hook, you can choose to ignore its failure on a per-commit basis by committing with the --no-verify flag; however, you will need to be sure that all packages are formatted when submitting a pull request.

MSRV

The Minimum Supported Rust Version is 1.67.0 for all packages.

RISC-V is officially supported by the official Rust compiler, however, it should be noted that targeting the Xtensa ISA currently requires the use of the esp-rs/rust compiler fork. Our recommend method of installation is espup.

When targetting the RISC-V architecture and using a stable Rust release, it is necessary to set RUSTC_BOOTSTRAP=1 in order to build successfully; this is not required when using a nightly release or when targeting Xtensa.

License

Licensed under either of:

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.

esp-hal's People

Contributors

bjoernq avatar jessebraham avatar bugadani avatar mabezdev avatar sergiogasquez avatar jurajsadel avatar dimpolo avatar gustavonihei avatar playfulfence avatar bryankadzban avatar onsdagens avatar ducktec avatar har7an avatar sethp avatar liebman avatar jneem avatar icedrocket avatar isaacdynamo avatar anthonygrondin avatar i404788 avatar jordanhalase avatar raiker avatar matrixhead avatar manio avatar katyo avatar doumanash avatar alexiionescu avatar 9names avatar sanxus avatar vladan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.