Skip to content

Commit 0e90b03

Browse files
committed
Add documentation for the cdev feature
1 parent 3239f28 commit 0e90b03

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ This project is developed and maintained by the [Embedded Linux team][team].
88

99
## [Documentation](https://docs.rs/linux-embedded-hal)
1010

11+
## GPIO character device
12+
13+
Since Linux kernel v4.4 the use of sysfs GPIO was deprecated and replaced by the character device GPIO.
14+
See [gpio-cdev documentation](https://github.com/rust-embedded/gpio-cdev#sysfs-gpio-vs-gpio-character-device) for details.
15+
16+
This crate includes feature flag `gpio_cdev` that replaces [sysfs_gpio](https://crates.io/crates/sysfs_gpio) by [gpio-cdev](https://crates.io/crates/gpio-cdev).
17+
To enable it update your Cargo.toml.
18+
```
19+
linux-embedded-hal = { version = "0.3", features = ["gpio_cdev"] }
20+
```
21+
1122
## License
1223

1324
Licensed under either of

0 commit comments

Comments
 (0)