1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Procedural macros for [drone-cortexm].
//!
//! [drone-cortexm]: https://github.com/drone-os/drone-cortexm

#![recursion_limit = "256"]
#![warn(unsafe_op_in_unsafe_fn)]
#![warn(clippy::pedantic)]

extern crate proc_macro;

mod sv_pool;
mod thr_nvic;

use proc_macro::TokenStream;

#[proc_macro]
pub fn sv_pool(input: TokenStream) -> TokenStream {
    sv_pool::proc_macro(input)
}

#[proc_macro]
pub fn thr_nvic(input: TokenStream) -> TokenStream {
    thr_nvic::proc_macro(input)
}