Skip to content

Commit

Permalink
Merge pull request rust-embedded#76 from Dirreke/release0.5.2
Browse files Browse the repository at this point in the history
prepare for 0.6.0
  • Loading branch information
eldruin authored and azureqaq committed May 17, 2024
2 parents 6e8a153 + 06b8787 commit 27379a0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/target/
**/*.rs.bk
Cargo.lock

/.vscode
/.cargo
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v0.6.0] - 2023-09-11

- Updated nix to version `0.27`.
- Updated bitflags to version `2.4`.
- MSRV is now 1.65.0.
Expand Down Expand Up @@ -60,7 +62,8 @@ Adds the ability to create a collection of lines from a single chip and read or
- Initial release of the library with basic operations centered around operating
on a single line at a time.

[Unreleased]: https:/rust-embedded/gpio-cdev/compare/0.5.1...HEAD
[Unreleased]: https:/rust-embedded/gpio-cdev/compare/0.6.0...HEAD
[v0.6.0]: https:/rust-embedded/gpio-cdev/compare/0.5.1...0.6.0
[v0.5.1]: https:/rust-embedded/gpio-cdev/compare/0.5.0...0.5.1
[v0.5.0]: https:/rust-embedded/gpio-cdev/compare/0.4.0...0.5.0
[v0.4.0]: https:/rust-embedded/gpio-cdev/compare/0.3.0...0.4.0
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gpio-cdev"
version = "0.5.1"
version = "0.6.0"
authors = ["Paul Osborne <[email protected]>", "Frank Pagliughi <[email protected]>"]
description = "Linux GPIO Character Device Support (/dev/gpiochipN)"
homepage = "https:/rust-embedded/gpio-cdev"
Expand All @@ -27,6 +27,7 @@ tokio = { version = "1", features = ["io-std", "net"], optional = true }
futures = { version = "0.3", optional = true }

[dev-dependencies]
ignore = "=0.4.20" # dep of `quicli`, make it compatible with rust 1.65.0
quicli = "0.4"
structopt = "0.3"
anyhow = "1.0"
Expand Down
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,13 @@ bitflags! {
const ACTIVE_LOW = (1 << 2);
const OPEN_DRAIN = (1 << 3);
const OPEN_SOURCE = (1 << 4);
// https://elixir.bootlin.com/linux/v5.5/source/include/uapi/linux/gpio.h#L30
/// Available since Linux Kernel 5.5
const BIAS_PULL_UP = (1 << 5);
/// Available since Linux Kernel 5.5
const BIAS_PULL_DOWN = (1 << 6);
/// Available since Linux Kernel 5.5
const BIAS_PULL_DISABLE = (1 << 7);
}
}

Expand Down

0 comments on commit 27379a0

Please sign in to comment.