diff options
| -rw-r--r-- | CHANGELOG.md | 7 | ||||
| -rw-r--r-- | Cargo.toml | 11 | ||||
| -rw-r--r-- | macros/Cargo.toml | 4 | ||||
| -rw-r--r-- | macros/src/codegen.rs | 2 | ||||
| -rw-r--r-- | macros/src/codegen/local_resources.rs | 2 | ||||
| -rw-r--r-- | macros/src/codegen/shared_resources.rs | 2 | ||||
| -rw-r--r-- | macros/src/codegen/shared_resources_struct.rs | 2 | ||||
| -rw-r--r-- | macros/src/codegen/util.rs | 6 | ||||
| -rw-r--r-- | src/lib.rs | 8 | ||||
| -rw-r--r-- | src/tq.rs | 2 |
10 files changed, 29 insertions, 17 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 11fab90..746f58a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v1.0.0] - 2021-12-25 + ### Changed +- Bump RTIC dependencies also updated to v1.0.0 +- Edition 2021 - Change default `idle` behaviour to be `NOP` instead of `WFI` ## [v0.6.0-rc.4] - 2021-11-09 @@ -451,7 +455,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/v0.6.0-rc.4...HEAD +[Unreleased]: https://github.com/rtic-rs/cortex-m-rtic/compare/v1.0.0...HEAD +[v1.0.0]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.6.0-rc.4...v1.0.0 [v0.6.0-rc.4]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.6.0-rc.3...v0.6.0-rc.4 [v0.6.0-rc.3]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.6.0-rc.2...v0.6.0-rc.3 [v0.6.0-rc.2]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.6.0-rc.1...v0.6.0-rc.2 @@ -14,16 +14,16 @@ name = "cortex-m-rtic" readme = "README.md" repository = "https://github.com/rtic-rs/cortex-m-rtic" -version = "0.6.0-rc.4" +version = "1.0.0" [lib] name = "rtic" [dependencies] cortex-m = "0.7.0" -cortex-m-rtic-macros = { path = "macros", version = "0.6.0-rc.4" } -rtic-monotonic = "0.1.0-rc.2" -rtic-core = "0.3.1" +cortex-m-rtic-macros = { path = "macros", version = "1.0.0" } +rtic-monotonic = "1.0.0" +rtic-core = "1.0.0" heapless = "0.7.7" bare-metal = "1.0.0" @@ -33,7 +33,7 @@ version_check = "0.9" [dev-dependencies] lm3s6965 = "0.1.3" cortex-m-semihosting = "0.3.3" -systick-monotonic = "0.1.0-rc.2" +systick-monotonic = "1.0.0" [dev-dependencies.panic-semihosting] features = ["exit"] @@ -70,4 +70,3 @@ overflow-checks = false [patch.crates-io] lm3s6965 = { git = "https://github.com/japaric/lm3s6965" } -# embedded-time = { path = "../../embedded-time" } diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 394c177..8339549 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -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 = "0.6.0-rc.4" +version = "1.0.0" [lib] proc-macro = true @@ -22,4 +22,4 @@ proc-macro2 = "1" proc-macro-error = "1" quote = "1" syn = "1" -rtic-syntax = "0.5.0-rc.2" +rtic-syntax = "1.0.0" diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs index 422de5f..1005084 100644 --- a/macros/src/codegen.rs +++ b/macros/src/codegen.rs @@ -107,7 +107,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 { .map(|(_, monotonic)| { let name = &monotonic.ident; let name_str = &name.to_string(); - let ident = util::monotonic_ident(&name_str); + let ident = util::monotonic_ident(name_str); let doc = &format!( "This module holds the static implementation for `{}::now()`", name_str diff --git a/macros/src/codegen/local_resources.rs b/macros/src/codegen/local_resources.rs index ff53486..50621c3 100644 --- a/macros/src/codegen/local_resources.rs +++ b/macros/src/codegen/local_resources.rs @@ -51,7 +51,7 @@ pub fn codegen( let expr = &task_local.expr; let attrs = &task_local.attrs; - let mangled_name = util::declared_static_local_resource_ident(resource_name, &task_name); + let mangled_name = util::declared_static_local_resource_ident(resource_name, task_name); // For future use // let doc = format!(" RTIC internal: {}:{}", file!(), line!()); diff --git a/macros/src/codegen/shared_resources.rs b/macros/src/codegen/shared_resources.rs index ddd3824..a115b7c 100644 --- a/macros/src/codegen/shared_resources.rs +++ b/macros/src/codegen/shared_resources.rs @@ -21,7 +21,7 @@ pub fn codegen( for (name, res) in &app.shared_resources { let cfgs = &res.cfgs; let ty = &res.ty; - let mangled_name = &util::static_shared_resource_ident(&name); + let mangled_name = &util::static_shared_resource_ident(name); // late resources in `util::link_section_uninit` let section = util::link_section_uninit(); diff --git a/macros/src/codegen/shared_resources_struct.rs b/macros/src/codegen/shared_resources_struct.rs index 6122651..7ae8d80 100644 --- a/macros/src/codegen/shared_resources_struct.rs +++ b/macros/src/codegen/shared_resources_struct.rs @@ -32,7 +32,7 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2, None }; let ty = &res.ty; - let mangled_name = util::static_shared_resource_ident(&name); + let mangled_name = util::static_shared_resource_ident(name); let shared_name = util::need_to_lock_ident(name); if !res.properties.lock_free { diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs index 831718a..e865434 100644 --- a/macros/src/codegen/util.rs +++ b/macros/src/codegen/util.rs @@ -76,7 +76,7 @@ pub fn interrupt_ident() -> Ident { } pub fn timer_queue_marker_ident() -> Ident { - mark_internal_name(&"TIMER_QUEUE_MARKER") + mark_internal_name("TIMER_QUEUE_MARKER") } /// Whether `name` is an exception with configurable priority @@ -225,7 +225,7 @@ pub fn rq_ident(priority: u8) -> Ident { /// Generates an identifier for the `enum` of `schedule`-able tasks pub fn schedule_t_ident() -> Ident { - Ident::new(&"SCHED_T", Span::call_site()) + Ident::new("SCHED_T", Span::call_site()) } /// Generates an identifier for the `enum` of `spawn`-able tasks @@ -278,7 +278,7 @@ pub fn need_to_lock_ident(name: &Ident) -> Ident { /// The name to get better RT flag errors pub fn rt_err_ident() -> Ident { Ident::new( - &"you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml", + "you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml", Span::call_site(), ) } @@ -96,12 +96,20 @@ impl<T> RacyCell<T> { } /// Get `*mut T` + /// + /// # Safety + /// + /// See documentation notes for [`RacyCell`] #[inline(always)] pub unsafe fn get_mut(&self) -> *mut T { self.0.get() } /// Get `*const T` + /// + /// # Safety + /// + /// See documentation notes for [`RacyCell`] #[inline(always)] pub unsafe fn get(&self) -> *const T { self.0.get() @@ -176,6 +176,6 @@ where Mono: Monotonic, { fn partial_cmp(&self, other: &Self) -> Option<Ordering> { - Some(self.cmp(&other)) + Some(self.cmp(other)) } } |
