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