-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For the BSEC we need to use Acquire and Release to ensure the manipulations of the unsafe bsec library are not order outside of the the area holding the BSEC_IN_USE lock. However, no AcqRel is required because we need to establish no memory access get ordered after the write of the lock. For the FakeClock there is no critical section, purely incrementing the counter in an atomic way is sufficient. Thus, relaxed ordering is fine here.
- Loading branch information
Showing
4 changed files
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
[package] | ||
name = "bsec" | ||
version = "0.3.0" | ||
authors = ["Jan Gosmann <[email protected]>"] | ||
categories = ["embedded"] | ||
description = "Rust API to the Bosch BSEC library." | ||
edition = "2018" | ||
keywords = ["bindings", "bsec"] | ||
license = "MIT OR Apache-2.0" | ||
description = "Rust API to the Bosch BSEC library." | ||
repository = "https://github.com/jgosmann/bsec" | ||
name = "bsec" | ||
readme = "README.md" | ||
keywords = ["bindings", "bsec"] | ||
categories = ["embedded"] | ||
repository = "https://github.com/jgosmann/bsec" | ||
version = "0.3.1" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
bme680 = { version = "0.5.1", optional = true } | ||
embedded-hal = { version = "0.2.5", optional = true } | ||
bme680 = {version = "0.5.1", optional = true} | ||
embedded-hal = {version = "0.2.5", optional = true} | ||
libalgobsec-sys = "0.1.0" | ||
nb = "1.0.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters