Giter Site home page Giter Site logo

embedded-hal's Introduction

embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems

This project is developed and maintained by the HAL team.

Important

๐Ÿ“ฃ embedded-hal v1.0 is now released! Check out the announcement blog post, the API documentation and the migration guide.

Scope

embedded-hal serves as a foundation for building an ecosystem of platform-agnostic drivers. (driver meaning library crates that let a target platform interface an external device like a digital sensor or a wireless transceiver).

The advantage of this system is that by writing the driver as a generic library on top of embedded-hal driver authors can support any number of target platforms (e.g. Cortex-M microcontrollers, AVR microcontrollers, embedded Linux, etc.).

The advantage for application developers is that by adopting embedded-hal they can unlock all these drivers for their platform.

For functionality that goes beyond what is provided by embedded-hal, users are encouraged to use the target platform directly. Abstractions of common functionality can be proposed to be included into embedded-hal as described in this guide, though.

See more about the design goals in this documentation section.

Crates

The main embedded-hal project is not tied to a specific execution model like blocking or non-blocking.

Crate crates.io Docs
embedded-hal crates.io Documentation Core traits, blocking version
embedded-hal-async crates.io Documentation Core traits, async version
embedded-hal-nb crates.io Documentation Core traits, polling version using the nb crate
embedded-hal-bus crates.io Documentation Utilities for sharing SPI and I2C buses
embedded-can crates.io Documentation Controller Area Network (CAN) traits
embedded-io crates.io Documentation I/O traits (read, write, seek, etc.), blocking and nonblocking version.
embedded-io-async crates.io Documentation I/O traits, async version
embedded-io-adapters crates.io Documentation Adapters between the embedded-io and embedded-io-async traits and other IO traits (std, tokio, futures...)

Documents

Implementations and drivers

For a non-exhaustive list of embedded-hal implementations and driver crates check the awesome-embedded-rust list.

You may be able to find even more HAL implementation crates and driver crates by searching for the embedded-hal-impl, embedded-hal-driver and embedded-hal keywords on crates.io.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.60 and up. It might compile with older versions but that may change in any new patch release.

See here for details on how the MSRV may be upgraded.

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.

Code of Conduct

Contribution to this repository is organized under the terms of the Rust Code of Conduct, the maintainers of this repository, the HAL team, promise to intervene to uphold that code of conduct.

embedded-hal's People

Contributors

bors[bot] avatar dirbaio avatar eldruin avatar japaric avatar ryankurte avatar grantm11235 avatar hannobraun avatar therealprof avatar nyurik avatar mabezdev avatar timokroeger avatar luojia65 avatar no111u3 avatar homunkulus avatar jannic avatar usbalbin avatar david-sawatzke avatar sh3rm4n avatar newam avatar astro avatar disasm avatar tommy-gilligan avatar nils-van-zuijlen avatar thejpster avatar jamesmunns avatar bugadani avatar burrbull avatar spookyvision avatar adamgreig avatar lachlansneff 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.