- Notifications
You must be signed in to change notification settings - Fork53
Implementation of the `embedded-hal` traits for Linux devices
License
Apache-2.0, MIT licenses found
Licenses found
rust-embedded/linux-embedded-hal
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Implementation of the
embedded-haltraits for Linux devices
This project is developed and maintained by theEmbedded Linux team.
Since Linux kernel v4.4 the use of sysfs GPIO was deprecated and replaced by the character device GPIO.Seegpio-cdev documentation for details.
This crate includes feature flaggpio_cdev that exposesCdevPin as wrapper aroundLineHandle fromgpio-cdev.To enable it update your Cargo.toml. Please note that in order to preventLineHandle fd from closing you shouldassign to a variable, seecdev issue for more details.
linux-embedded-hal = { version = "0.4", features = ["gpio_cdev"] }SysfsPin can be still used with feature flaggpio_sysfs.
Withdefault-features = false you can enable the featuresgpio_cdev,gpio_sysfs,i2c, andspi as needed.
This crate is guaranteed to compile on stable Rust 1.65.0 and up. Itmightcompile with older versions but that may change in any new patch release.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE orhttp://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT orhttp://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in the work by you, as defined in the Apache-2.0 license, shall bedual licensed as above, without any additional terms or conditions.
Contribution to this crate is organized under the terms of theRust Code ofConduct, the maintainer of this crate, theHAL team, promisesto intervene to uphold that code of conduct.
About
Implementation of the `embedded-hal` traits for Linux devices
Topics
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.