From 3310f507c0709ca82d0d21fc22f4811471070a29 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 27 Feb 2019 00:56:56 +0100 Subject: [PATCH] v0.4.2 --- CHANGELOG.md | 46 +++++++++++++++++++++++++++++++++++++++++++++- Cargo.toml | 4 ++-- macros/Cargo.toml | 2 +- 3 files changed, 48 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b45a0b0bc..860dad712d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,49 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.4.2] - 2019-02-27 + +### Added + +- `Duration` now has an `as_cycles` method to get the number of clock cycles + contained in it. + +- An opt-in "nightly" feature that reduces static memory usage, shortens + initialization time and reduces runtime overhead has been added. To use this + feature you need a nightly compiler! + +- [RFC 128] has been implemented. The `exception` and `interrupt` have gained a + `binds` argument that lets you give the handler an arbitrary name. For + example: + +[RFC 128]: https://github.com/japaric/cortex-m-rtfm/issues/128 + +``` rust +// on v0.4.1 you had to write +#[interrupt] +fn USART0() { .. } + +// on v0.4.2 you can write +#[interrupt(binds = USART0)] +fn on_new_frame() { .. } +``` + +### Changed + +- Builds are now reproducible. `cargo build; cargo clean; cargo build` will + produce binaries that are exactly the same (after `objcopy -O ihex`). This + wasn't the case before because we used randomly generated identifiers for + memory safety but now all the randomness is gone. + +### Fixed + +- Fixed a `non_camel_case_types` warning that showed up when using a recent + nightly. + +- Fixed a bug that allowed you to enter the `capacity` and `priority` arguments + in the `task` attribute more than once. Now all arguments can only be stated + once in the list, as it should be. + ## [v0.4.1] - 2019-02-12 ### Added @@ -176,7 +219,8 @@ Yanked due to a soundness issue in `init`; the issue has been mostly fixed in v0 - Initial release -[Unreleased]: https://github.com/japaric/cortex-m-rtfm/compare/v0.4.1...HEAD +[Unreleased]: https://github.com/japaric/cortex-m-rtfm/compare/v0.4.2...HEAD +[v0.4.2]: https://github.com/japaric/cortex-m-rtfm/compare/v0.4.1...v0.4.2 [v0.4.1]: https://github.com/japaric/cortex-m-rtfm/compare/v0.4.0...v0.4.1 [v0.4.0]: https://github.com/japaric/cortex-m-rtfm/compare/v0.3.4...v0.4.0 [v0.3.4]: https://github.com/japaric/cortex-m-rtfm/compare/v0.3.3...v0.3.4 diff --git a/Cargo.toml b/Cargo.toml index f09677239f..12b39235b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0" name = "cortex-m-rtfm" readme = "README.md" repository = "https://github.com/japaric/cortex-m-rtfm" -version = "0.4.1" +version = "0.4.2" [lib] name = "rtfm" @@ -36,7 +36,7 @@ required-features = ["timer-queue"] [dependencies] cortex-m = "0.5.8" cortex-m-rt = "0.6.7" -cortex-m-rtfm-macros = { path = "macros", version = "0.4.1" } +cortex-m-rtfm-macros = { path = "macros", version = "0.4.2" } heapless = "0.4.1" owned-singleton = "0.1.0" diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 48e75f8977..93e5ee72ed 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" name = "cortex-m-rtfm-macros" readme = "../README.md" repository = "https://github.com/japaric/cortex-m-rtfm" -version = "0.4.1" +version = "0.4.2" [lib] proc-macro = true