Skip to content

Commit 0b8e373

Browse files
committed
Update documentation and change log for cdev feature
1 parent 6809164 commit 0b8e373

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
### Added
1313

1414
- Added serial::Read/Write implementation.
15+
- Added feature flag for Chardev GPIO
1516

1617
### Fixed
1718

@@ -23,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2324
- Use embedded-hal::digital::v2 traits.
2425
- Updated to i2cdev 0.4.3 (necessary for trasactional write-read).
2526
- Updated to spidev 0.4
27+
- Added feature flag for Sysfs GPIO
2628

2729
## [v0.2.2] - 2018-12-21
2830

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ This project is developed and maintained by the [Embedded Linux team][team].
1313
Since Linux kernel v4.4 the use of sysfs GPIO was deprecated and replaced by the character device GPIO.
1414
See [gpio-cdev documentation](https://github.com/rust-embedded/gpio-cdev#sysfs-gpio-vs-gpio-character-device) for details.
1515

16-
This crate includes feature flag `gpio_cdev` that exposes `CdevPin` as wrapper around `LineHandle` from [gpio-cdev](https://crates.io/crates/gpio-cdev).
17-
To enable it update your Cargo.toml.
16+
This crate includes feature flag `gpio_cdev` that exposes `CdevPin` as wrapper around `LineHandle` from [gpio-cdev](https://crates.io/crates/gpio-cdev).
17+
To enable it update your Cargo.toml. Please note that in order to prevent `LineHandle` fd from closing you should
18+
assign to a variable, see [cdev issue](https://github.com/rust-embedded/gpio-cdev/issues/29) for more details.
1819
```
1920
linux-embedded-hal = { version = "0.3", features = ["gpio_cdev"] }
2021
```

0 commit comments

Comments
 (0)