Skip to content
Snippets Groups Projects
Commit c64e7dec authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

doc tweaks

parent 0788a15a
Branches
Tags
No related merge requests found
//! Procedural macros for the RTFM framework
#![deny(warnings)]
#![feature(proc_macro)] #![feature(proc_macro)]
#![recursion_limit = "128"] #![recursion_limit = "128"]
...@@ -18,6 +21,8 @@ mod analyze; ...@@ -18,6 +21,8 @@ mod analyze;
mod check; mod check;
mod trans; mod trans;
/// The `app!` macro, a macro used to specify the tasks and resources of a
/// RTFM application.
#[proc_macro] #[proc_macro]
pub fn app(ts: TokenStream) -> TokenStream { pub fn app(ts: TokenStream) -> TokenStream {
match run(ts) { match run(ts) {
......
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
//! //!
//! # Examples //! # Examples
//! //!
//! In increasing grade of complexity: [examples](./examples/index.html) //! In increasing grade of complexity, see the [examples](./examples/index.html)
//! module.
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(warnings)] #![deny(warnings)]
...@@ -64,10 +65,10 @@ extern crate static_ref; ...@@ -64,10 +65,10 @@ extern crate static_ref;
use core::cell::UnsafeCell; use core::cell::UnsafeCell;
pub use cortex_m_rtfm_macros::app;
pub use cortex_m::asm::{bkpt, wfi}; pub use cortex_m::asm::{bkpt, wfi};
pub use cortex_m::interrupt::CriticalSection; pub use cortex_m::interrupt::CriticalSection;
pub use cortex_m::interrupt::free as atomic; pub use cortex_m::interrupt::free as atomic;
pub use cortex_m_rtfm_macros::app;
pub use static_ref::Static; pub use static_ref::Static;
use cortex_m::interrupt::Nr; use cortex_m::interrupt::Nr;
#[cfg(not(armv6m))] #[cfg(not(armv6m))]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment