1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! Drone for ARM Cortex-M. Procedural macros.
//!
//! See `drone-cortex-m` documentation for details.

#![feature(proc_macro)]
#![recursion_limit = "256"]
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]
#![cfg_attr(feature = "clippy", allow(precedence, doc_markdown))]

#[macro_use]
extern crate drone_macros_core;
#[macro_use]
extern crate failure;
extern crate inflector;
extern crate proc_macro;
#[macro_use]
extern crate quote;
extern crate syn;

mod interrupt;
mod vtable;

use proc_macro::TokenStream;

#[doc(hidden)]
#[proc_macro]
pub fn interrupt(input: TokenStream) -> TokenStream {
  tokens!(interrupt::interrupt(input))
}

#[doc(hidden)]
#[proc_macro]
pub fn vtable(input: TokenStream) -> TokenStream {
  tokens!(vtable::vtable(input))
}