diff options
-rw-r--r-- | CHANGELOG.md | 11 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/register/basepri.rs | 2 | ||||
-rw-r--r-- | src/register/basepri_max.rs | 2 |
4 files changed, 13 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e2b1bd..c4225fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.3.1] - 2017-07-20 + +### Changed + +- `{basepri,basepri_max}::write` are now compiler barriers for the same reason + that `interrupt::{disable,enable}` are: they are used to create critical + sections. + ## [v0.3.0] - 2017-07-07 ### Changed @@ -345,7 +353,8 @@ fn main() { - Functions to get the vector table - Wrappers over miscellaneous instructions like `bkpt` -[Unreleased]: https://github.com/japaric/cortex-m/compare/v0.3.0...HEAD +[Unreleased]: https://github.com/japaric/cortex-m/compare/v0.3.1...HEAD +[v0.3.1]: https://github.com/japaric/cortex-m/compare/v0.3.0...v0.3.1 [v0.3.0]: https://github.com/japaric/cortex-m/compare/v0.2.11...v0.3.0 [v0.2.11]: https://github.com/japaric/cortex-m/compare/v0.2.10...v0.2.11 [v0.2.10]: https://github.com/japaric/cortex-m/compare/v0.2.9...v0.2.10 @@ -7,7 +7,7 @@ keywords = ["arm", "cortex-m", "register", "peripheral"] license = "MIT OR Apache-2.0" name = "cortex-m" repository = "https://github.com/japaric/cortex-m" -version = "0.3.0" +version = "0.3.1" [dependencies] aligned = "0.1.1" diff --git a/src/register/basepri.rs b/src/register/basepri.rs index ca461e8..c02fe84 100644 --- a/src/register/basepri.rs +++ b/src/register/basepri.rs @@ -20,6 +20,6 @@ pub unsafe fn write(basepri: u8) { asm!("msr BASEPRI, $0" : : "r"(basepri) - : + : "memory" : "volatile"); } diff --git a/src/register/basepri_max.rs b/src/register/basepri_max.rs index e7594e6..bcc7cdb 100644 --- a/src/register/basepri_max.rs +++ b/src/register/basepri_max.rs @@ -10,7 +10,7 @@ pub fn write(basepri: u8) { asm!("msr BASEPRI_MAX, $0" : : "r"(basepri) - : + : "memory" : "volatile"); } } |