Skip to content

Commit 4eb02a2

Browse files
committed
v0.3.1
1 parent 245a6d5 commit 4eb02a2

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.3.1] - 2017-07-20
11+
12+
### Changed
13+
14+
- `{basepri,basepri_max}::write` are now compiler barriers for the same reason
15+
that `interrupt::{disable,enable}` are: they are used to create critical
16+
sections.
17+
1018
## [v0.3.0] - 2017-07-07
1119

1220
### Changed
@@ -345,7 +353,8 @@ fn main() {
345353
- Functions to get the vector table
346354
- Wrappers over miscellaneous instructions like `bkpt`
347355

348-
[Unreleased]: https://github.com/japaric/cortex-m/compare/v0.3.0...HEAD
356+
[Unreleased]: https://github.com/japaric/cortex-m/compare/v0.3.1...HEAD
357+
[v0.3.1]: https://github.com/japaric/cortex-m/compare/v0.3.0...v0.3.1
349358
[v0.3.0]: https://github.com/japaric/cortex-m/compare/v0.2.11...v0.3.0
350359
[v0.2.11]: https://github.com/japaric/cortex-m/compare/v0.2.10...v0.2.11
351360
[v0.2.10]: https://github.com/japaric/cortex-m/compare/v0.2.9...v0.2.10

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords = ["arm", "cortex-m", "register", "peripheral"]
77
license = "MIT OR Apache-2.0"
88
name = "cortex-m"
99
repository = "https://github.com/japaric/cortex-m"
10-
version = "0.3.0"
10+
version = "0.3.1"
1111

1212
[dependencies]
1313
aligned = "0.1.1"

src/register/basepri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ pub unsafe fn write(basepri: u8) {
2020
asm!("msr BASEPRI, $0"
2121
:
2222
: "r"(basepri)
23-
:
23+
: "memory"
2424
: "volatile");
2525
}

src/register/basepri_max.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn write(basepri: u8) {
1010
asm!("msr BASEPRI_MAX, $0"
1111
:
1212
: "r"(basepri)
13-
:
13+
: "memory"
1414
: "volatile");
1515
}
1616
}

0 commit comments

Comments
 (0)