File tree Expand file tree Collapse file tree 3 files changed +8
-28
lines changed Expand file tree Collapse file tree 3 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 410410
411411// NOTE This file is for documentation only
412412
413- #![ recursion_limit = "128" ]
414-
415- extern crate cast;
416- extern crate either;
417- #[ macro_use]
418- extern crate error_chain;
419- extern crate inflections;
420- #[ macro_use]
421- pub extern crate quote;
422- pub extern crate svd_parser as svd;
423- extern crate syn;
424-
425- mod errors;
426- pub mod generate;
427- mod util;
428- pub mod target;
429-
430- use target:: Target ;
431-
432413/// Assigns a handler to an interrupt
433414///
434415/// This macro takes two arguments: the name of an interrupt and the path to the
Original file line number Diff line number Diff line change @@ -14,15 +14,21 @@ extern crate syn;
1414mod errors;
1515mod generate;
1616mod util;
17- mod target;
1817
1918use std:: fs:: File ;
2019use std:: { io, process} ;
2120
2221use clap:: { App , Arg } ;
2322
2423use errors:: * ;
25- use target:: Target ;
24+
25+ #[ derive( Clone , Copy , PartialEq ) ]
26+ pub enum Target {
27+ CortexM ,
28+ Msp430 ,
29+ RISCV ,
30+ None ,
31+ }
2632
2733impl Target {
2834 fn parse ( s : & str ) -> Result < Self > {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments