forked from atsams-rs/atsamx7x-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
151 lines (147 loc) · 4.83 KB
/
lib.rs
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#![no_std]
pub use embedded_hal as ehal;
pub use nb;
#[cfg(not(feature = "device-selected"))]
compile_error!(
"The HAL is built for a specific target device selected using a feature, but no such a feature was selected."
);
#[cfg(feature = "same70j19")]
pub use atsame70j19 as target_device;
#[cfg(feature = "same70j19b")]
pub use atsame70j19b as target_device;
#[cfg(feature = "same70j20")]
pub use atsame70j20 as target_device;
#[cfg(feature = "same70j20b")]
pub use atsame70j20b as target_device;
#[cfg(feature = "same70j21")]
pub use atsame70j21 as target_device;
#[cfg(feature = "same70j21b")]
pub use atsame70j21b as target_device;
#[cfg(feature = "same70n19")]
pub use atsame70n19 as target_device;
#[cfg(feature = "same70n19b")]
pub use atsame70n19b as target_device;
#[cfg(feature = "same70n20")]
pub use atsame70n20 as target_device;
#[cfg(feature = "same70n20b")]
pub use atsame70n20b as target_device;
#[cfg(feature = "same70n21")]
pub use atsame70n21 as target_device;
#[cfg(feature = "same70n21b")]
pub use atsame70n21b as target_device;
#[cfg(feature = "same70q19")]
pub use atsame70q19 as target_device;
#[cfg(feature = "same70q19b")]
pub use atsame70q19b as target_device;
#[cfg(feature = "same70q20")]
pub use atsame70q20 as target_device;
#[cfg(feature = "same70q20b")]
pub use atsame70q20b as target_device;
#[cfg(feature = "same70q21")]
pub use atsame70q21 as target_device;
#[cfg(feature = "same70q21b")]
pub use atsame70q21b as target_device;
#[cfg(feature = "sams70j19")]
pub use atsams70j19 as target_device;
#[cfg(feature = "sams70j19b")]
pub use atsams70j19b as target_device;
#[cfg(feature = "sams70j20")]
pub use atsams70j20 as target_device;
#[cfg(feature = "sams70j20b")]
pub use atsams70j20b as target_device;
#[cfg(feature = "sams70j21")]
pub use atsams70j21 as target_device;
#[cfg(feature = "sams70j21b")]
pub use atsams70j21b as target_device;
#[cfg(feature = "sams70n19")]
pub use atsams70n19 as target_device;
#[cfg(feature = "sams70n19b")]
pub use atsams70n19b as target_device;
#[cfg(feature = "sams70n20")]
pub use atsams70n20 as target_device;
#[cfg(feature = "sams70n20b")]
pub use atsams70n20b as target_device;
#[cfg(feature = "sams70n21")]
pub use atsams70n21 as target_device;
#[cfg(feature = "sams70n21b")]
pub use atsams70n21b as target_device;
#[cfg(feature = "sams70q19")]
pub use atsams70q19 as target_device;
#[cfg(feature = "sams70q19b")]
pub use atsams70q19b as target_device;
#[cfg(feature = "sams70q20")]
pub use atsams70q20 as target_device;
#[cfg(feature = "sams70q20b")]
pub use atsams70q20b as target_device;
#[cfg(feature = "sams70q21")]
pub use atsams70q21 as target_device;
#[cfg(feature = "sams70q21b")]
pub use atsams70q21b as target_device;
#[cfg(feature = "samv70j19")]
pub use atsamv70j19 as target_device;
#[cfg(feature = "samv70j19b")]
pub use atsamv70j19b as target_device;
#[cfg(feature = "samv70j20")]
pub use atsamv70j20 as target_device;
#[cfg(feature = "samv70j20b")]
pub use atsamv70j20b as target_device;
#[cfg(feature = "samv70n19")]
pub use atsamv70n19 as target_device;
#[cfg(feature = "samv70n19b")]
pub use atsamv70n19b as target_device;
#[cfg(feature = "samv70n20")]
pub use atsamv70n20 as target_device;
#[cfg(feature = "samv70n20b")]
pub use atsamv70n20b as target_device;
#[cfg(feature = "samv70q19")]
pub use atsamv70q19 as target_device;
#[cfg(feature = "samv70q19b")]
pub use atsamv70q19b as target_device;
#[cfg(feature = "samv70q20")]
pub use atsamv70q20 as target_device;
#[cfg(feature = "samv70q20b")]
pub use atsamv70q20b as target_device;
#[cfg(feature = "samv71j19")]
pub use atsamv71j19 as target_device;
#[cfg(feature = "samv71j19b")]
pub use atsamv71j19b as target_device;
#[cfg(feature = "samv71j20")]
pub use atsamv71j20 as target_device;
#[cfg(feature = "samv71j20b")]
pub use atsamv71j20b as target_device;
#[cfg(feature = "samv71j21")]
pub use atsamv71j21 as target_device;
#[cfg(feature = "samv71j21b")]
pub use atsamv71j21b as target_device;
#[cfg(feature = "samv71n19")]
pub use atsamv71n19 as target_device;
#[cfg(feature = "samv71n19b")]
pub use atsamv71n19b as target_device;
#[cfg(feature = "samv71n20")]
pub use atsamv71n20 as target_device;
#[cfg(feature = "samv71n20b")]
pub use atsamv71n20b as target_device;
#[cfg(feature = "samv71n21")]
pub use atsamv71n21 as target_device;
#[cfg(feature = "samv71n21b")]
pub use atsamv71n21b as target_device;
#[cfg(feature = "samv71q19")]
pub use atsamv71q19 as target_device;
#[cfg(feature = "samv71q19b")]
pub use atsamv71q19b as target_device;
#[cfg(feature = "samv71q20")]
pub use atsamv71q20 as target_device;
#[cfg(feature = "samv71q20b")]
pub use atsamv71q20b as target_device;
#[cfg(feature = "samv71q21")]
pub use atsamv71q21 as target_device;
#[cfg(feature = "samv71q21b")]
pub use atsamv71q21b as target_device;
#[cfg(feature = "rev-b")]
pub mod serial;
#[cfg(feature = "rev-b")]
pub mod watchdog;
#[cfg(feature = "rev-b")]
pub mod pmc;
#[cfg(feature = "rev-b")]
pub mod efc;