Review fixes

This commit is contained in:
Emil Fresk 2021-02-25 17:32:12 +01:00
parent 70ea278f86
commit 767d46e05b
4 changed files with 5 additions and 9 deletions

View file

@ -53,7 +53,6 @@ required-features = ["__v7"]
[dependencies] [dependencies]
cortex-m = "0.7.0" cortex-m = "0.7.0"
cortex-m-rtic-macros = { path = "macros", version = "0.6.0-alpha.0" } cortex-m-rtic-macros = { path = "macros", version = "0.6.0-alpha.0" }
# rtic-core = { git = "https://github.com/rtic-rs/rtic-core", branch = "new_monotonic" }
rtic-monotonic = { git = "https://github.com/rtic-rs/rtic-monotonic", branch = "master" } rtic-monotonic = { git = "https://github.com/rtic-rs/rtic-monotonic", branch = "master" }
rtic-core = "0.3.1" rtic-core = "0.3.1"
heapless = "0.5.0" heapless = "0.5.0"

View file

@ -127,6 +127,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
#[doc(hidden)] #[doc(hidden)]
pub type #mangled_name = #ty; pub type #mangled_name = #ty;
/// This module holds the static implementation for `#name::now()`
#[allow(non_snake_case)] #[allow(non_snake_case)]
pub mod #name { pub mod #name {
/// Access the global `Monotonic` implementation, not that this will panic /// Access the global `Monotonic` implementation, not that this will panic
@ -154,7 +155,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
let rt_err = util::rt_err_ident(); let rt_err = util::rt_err_ident();
quote!( quote!(
/// Implementation details /// The RTIC application module
pub mod #name { pub mod #name {
/// Always include the device crate which contains the vector table /// Always include the device crate which contains the vector table
use #device as #rt_err; use #device as #rt_err;

View file

@ -53,13 +53,9 @@ pub fn codegen(
Context::Idle => {} Context::Idle => {}
Context::HardwareTask(..) => { Context::HardwareTask(_) => {}
// None for now.
}
Context::SoftwareTask(..) => { Context::SoftwareTask(_) => {}
// None for now.
}
} }
if ctxt.has_locals(app) { if ctxt.has_locals(app) {

View file

@ -32,7 +32,7 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(rust_2018_compatibility)] #![deny(rust_2018_compatibility)]
#![deny(rust_2018_idioms)] #![deny(rust_2018_idioms)]
// #![deny(warnings)] #![deny(warnings)]
#![no_std] #![no_std]
use cortex_m::{interrupt::InterruptNumber, peripheral::NVIC}; use cortex_m::{interrupt::InterruptNumber, peripheral::NVIC};