atsamd_hal/peripherals/
mod.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
use atsamd_hal_macros::{hal_cfg, hal_module};

#[hal_module(
    any("adc-d11", "adc-d21") => "adc/d11.rs",
    "adc-d5x" => "adc/d5x.rs",
)]
pub mod adc {}

#[hal_module(
    any("nvmctrl-d11", "nvmctrl-d21") => "calibration/d11.rs",
    "nvmctrl-d5x" => "calibration/d5x.rs",
)]
pub mod calibration {}

#[hal_module(
    any("clock-d11", "clock-d21") => "timer/d11.rs",
    "clock-d5x" => "timer/d5x.rs",
)]
pub mod timer {}

#[cfg(feature = "device")]
pub mod eic;

#[cfg(feature = "usb")]
#[hal_module(
    any("usb-d11", "usb-d21") => "usb/d11/mod.rs",
    "usb-d5x" => "usb/d5x/mod.rs",
)]
pub mod usb {}

#[hal_module(
    any("clock-d11", "clock-d21") => "pwm/d11.rs",
    "clock-d5x" => "pwm/d5x.rs",
)]
pub mod pwm {}

#[hal_module(
    any("clock-d11", "clock-d21") => "clock/d11.rs",
    "clock-d5x" => "clock/d5x/mod.rs",
)]
pub mod clock {}

#[hal_module("aes")]
pub mod aes {}

#[hal_module("dsu-d5x")]
pub mod dsu {}

#[hal_module("pukcc")]
pub mod pukcc {}

#[hal_module("qspi")]
pub mod qspi {}

#[hal_module("trng")]
pub mod trng {}

#[hal_module("icm")]
pub mod icm {}

#[hal_module("nvmctrl-d5x")]
pub mod nvm {}

#[cfg(feature = "can")]
#[hal_module(any("can0", "can1"))]
pub mod can {}

#[hal_module("wdt")]
pub mod watchdog {}

#[hal_module(any("pm-d11", "pm-d21", "rstc-d5x"))]
mod reset_cause {}

#[hal_cfg(any("pm-d11", "pm-d21", "rstc-d5x"))]
pub use reset_cause::*;

#[hal_module("serial-numbers")]
mod serial_number {}

#[hal_cfg("serial-numbers")]
pub use serial_number::*;