Skip to content

Commit 3917249

Browse files
committed
v0.5.2
1 parent 902d8ff commit 3917249

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [v0.5.2] - 2018-05-18
9+
10+
### Added
11+
12+
- `SCB` gained a pair of safe methods to set / clear the DEEPSLEEP bit.
13+
14+
- `asm::delay`, delay loops whose execution time doesn't depend on the optimization level.
15+
816
## [v0.5.1] - 2018-05-13
917

1018
### Added
@@ -452,7 +460,9 @@ fn main() {
452460
- Functions to get the vector table
453461
- Wrappers over miscellaneous instructions like `bkpt`
454462

455-
[Unreleased]: https://github.com/japaric/cortex-m/compare/v0.5.0...HEAD
463+
[Unreleased]: https://github.com/japaric/cortex-m/compare/v0.5.2...HEAD
464+
[v0.5.2]: https://github.com/japaric/cortex-m/compare/v0.5.1...v0.5.2
465+
[v0.5.1]: https://github.com/japaric/cortex-m/compare/v0.5.0...v0.5.1
456466
[v0.5.0]: https://github.com/japaric/cortex-m/compare/v0.4.3...v0.5.0
457467
[v0.4.3]: https://github.com/japaric/cortex-m/compare/v0.4.2...v0.4.3
458468
[v0.4.2]: https://github.com/japaric/cortex-m/compare/v0.4.1...v0.4.2

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.5.1"
10+
version = "0.5.2"
1111

1212
[build-dependencies]
1313
cc = "1.0.10"

src/asm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub fn bkpt() {
3232
/// NOTE that the delay can take much longer if interrupts are serviced during its execution.
3333
#[inline]
3434
pub fn delay(_n: u32) {
35+
// NOTE(divide by 4) is easier to compute than `/ 3` is it's just a shift (`>> 2`).
3536
match () {
3637
#[cfg(all(cortex_m, feature = "inline-asm"))]
3738
() => unsafe {

0 commit comments

Comments
 (0)