Skip to content

Commit

Permalink
Merge #698
Browse files Browse the repository at this point in the history
698: Release: v1.1.4 r=perlindgren a=AfoHT



Co-authored-by: Henrik Tjäder <[email protected]>
  • Loading branch information
bors[bot] and AfoHT authored Feb 26, 2023
2 parents d43c2b6 + e1a0987 commit 1c5db27
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!

### Added

### Fixed

### Changed

## [v1.1.4] - 2023-02-26

### Added

- CFG: Support #[cfg] on HW task, cleanup for SW tasks
- CFG: Slightly improved support for #[cfg] on Monotonics
- CI: Check examples also for thumbv8.{base,main}
Expand Down Expand Up @@ -551,7 +559,8 @@ Yanked due to a soundness issue in `init`; the issue has been mostly fixed in v0

- Initial release

[Unreleased]: https://github.com/rtic-rs/cortex-m-rtic/compare/v1.1.3...HEAD
[Unreleased]: https://github.com/rtic-rs/cortex-m-rtic/compare/v1.1.4...HEAD
[v1.1.4]: https://github.com/rtic-rs/cortex-m-rtic/compare/v1.1.3...v1.1.4
[v1.1.3]: https://github.com/rtic-rs/cortex-m-rtic/compare/v1.1.2...v1.1.3
[v1.1.2]: https://github.com/rtic-rs/cortex-m-rtic/compare/v1.1.1...v1.1.2
[v1.1.1]: https://github.com/rtic-rs/cortex-m-rtic/compare/v1.1.0...v1.1.1
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ name = "cortex-m-rtic"
readme = "README.md"
repository = "https://github.com/rtic-rs/cortex-m-rtic"

version = "1.1.3"
version = "1.1.4"

[lib]
name = "rtic"

[dependencies]
cortex-m = "0.7.0"
cortex-m-rtic-macros = { path = "macros", version = "1.1.5" }
cortex-m-rtic-macros = { path = "macros", version = "1.1.6" }
rtic-monotonic = "1.0.0"
rtic-core = "1.0.0"
heapless = "0.7.7"
Expand Down
2 changes: 0 additions & 2 deletions ci/expected/pool.run
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
bar(0x20000088)
foo(0x2000010c)
12 changes: 4 additions & 8 deletions examples/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pool!(P: [u8; 128]);
#[app(device = lm3s6965, dispatchers = [SSI0, QEI0])]
mod app {
use crate::{Box, Pool};
use cortex_m_semihosting::{debug, hprintln};
use cortex_m_semihosting::debug;
use lm3s6965::Interrupt;

// Import the memory pool into scope
Expand Down Expand Up @@ -57,19 +57,15 @@ mod app {
}

#[task]
fn foo(_: foo::Context, x: Box<P>) {
hprintln!("foo({:?})", x.as_ptr());

fn foo(_: foo::Context, _x: Box<P>) {
// explicitly return the block to the pool
drop(x);
drop(_x);

debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}

#[task(priority = 2)]
fn bar(_: bar::Context, x: Box<P>) {
hprintln!("bar({:?})", x.as_ptr());

fn bar(_: bar::Context, _x: Box<P>) {
// this is done automatically so we can omit the call to `drop`
// drop(x);
}
Expand Down
4 changes: 2 additions & 2 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
name = "cortex-m-rtic-macros"
readme = "../README.md"
repository = "https://github.com/rtic-rs/cortex-m-rtic"
version = "1.1.5"
version = "1.1.6"

[lib]
proc-macro = true
Expand All @@ -22,7 +22,7 @@ proc-macro2 = "1"
proc-macro-error = "1"
quote = "1"
syn = "1"
rtic-syntax = "1.0.2"
rtic-syntax = "1.0.3"

[features]
debugprint = []

0 comments on commit 1c5db27

Please sign in to comment.