File tree 3 files changed +8
-28
lines changed 3 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 410
410
411
411
// NOTE This file is for documentation only
412
412
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
-
432
413
/// Assigns a handler to an interrupt
433
414
///
434
415
/// 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;
14
14
mod errors;
15
15
mod generate;
16
16
mod util;
17
- mod target;
18
17
19
18
use std:: fs:: File ;
20
19
use std:: { io, process} ;
21
20
22
21
use clap:: { App , Arg } ;
23
22
24
23
use errors:: * ;
25
- use target:: Target ;
24
+
25
+ #[ derive( Clone , Copy , PartialEq ) ]
26
+ pub enum Target {
27
+ CortexM ,
28
+ Msp430 ,
29
+ RISCV ,
30
+ None ,
31
+ }
26
32
27
33
impl Target {
28
34
fn parse ( s : & str ) -> Result < Self > {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments