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
#![no_std]
extern crate atsamd21_hal as hal;
#[cfg(feature = "rt")]
extern crate cortex_m_rt;
#[cfg(feature = "rt")]
pub use cortex_m_rt::entry;
pub use hal::atsamd21e18a::*;
use hal::prelude::*;
pub use hal::*;
use gpio::{Floating, Input, Port};
define_pins!(
struct Pins,
target_device: atsamd21e18a,
pin d0 = a8,
pin d1 = a2,
pin d2 = a9,
pin d3 = a7,
pin d4 = a6,
pin d13 = a10,
pin dotstar_ci = a1,
pin dotstar_di = a0,
pin swdio = a31,
pin swdclk = a30,
pin usb_dm = a24,
pin usb_dp = a25,
);