-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
105 lines (93 loc) · 5.24 KB
/
Cargo.toml
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
[package]
name = "atsam4-hal"
version = "0.3.1"
authors = ["John W. Terrell <john@coolpeoplenetworks.com>", "Jacob Alexander <haata@kiibohd.com>"]
edition = "2021"
description = "HAL for the ATSAM4 microcontrollers"
keywords = ["arm", "cortex-m", "atsam4", "hal"]
categories = ["embedded", "hardware-support", "no-std"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/atsam4-rs/atsam4-hal"
[dependencies]
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
defmt = "0.3"
embedded-dma = "0.2.0"
embedded-hal = { version = "0.2.7", features = ["unproven"] }
embedded-storage = "0.3.0"
fugit = { version = "0.3.6", features = ["defmt"] }
fugit-timer = "0.1.3"
nb = "1.1.0"
paste = "1.0"
usb-device = { version = "0.2.9", features = ["defmt"], optional = true }
void = { version = "1.0.2", default-features = false }
# atsam4e
atsam4e8c-pac = { version = "0.3.1", optional = true }
atsam4e8e-pac = { version = "0.3.1", optional = true }
atsam4e16c-pac = { version = "0.3.1", optional = true }
atsam4e16e-pac = { version = "0.3.1", optional = true }
# atsam4n
atsam4n8a-pac = { version = "0.3.1", optional = true }
atsam4n8b-pac = { version = "0.3.1", optional = true }
atsam4n8c-pac = { version = "0.3.1", optional = true }
atsam4n16b-pac = { version = "0.3.1", optional = true }
atsam4n16c-pac = { version = "0.3.1", optional = true }
# atsam4s
atsam4s2a-pac = { version = "0.3.1", optional = true }
atsam4s2b-pac = { version = "0.3.1", optional = true }
atsam4s2c-pac = { version = "0.3.1", optional = true }
atsam4s4a-pac = { version = "0.3.1", optional = true }
atsam4s4b-pac = { version = "0.3.1", optional = true }
atsam4s4c-pac = { version = "0.3.1", optional = true }
atsam4s8b-pac = { version = "0.3.1", optional = true }
atsam4s8c-pac = { version = "0.3.1", optional = true }
atsam4sa16b-pac = { version = "0.3.1", optional = true }
atsam4sa16c-pac = { version = "0.3.1", optional = true }
atsam4sd16b-pac = { version = "0.3.1", optional = true }
atsam4sd16c-pac = { version = "0.3.1", optional = true }
atsam4sd32b-pac = { version = "0.3.1", optional = true }
atsam4sd32c-pac = { version = "0.3.1", optional = true }
[features]
default = ["atsam4e16e"]
unstable = []
# Enable USB clock support
usb = ["usb-device"]
# atsam4e
atsam4e = []
atsam4e_c = [] # 100-pin
atsam4e_e = [] # 144-pin
atsam4e8c = ["atsam4e", "atsam4e_c", "atsam4e8c-pac", "atsam4e8c-pac/rt", "atsam4e8c-pac/critical-section"]
atsam4e8e = ["atsam4e", "atsam4e_e", "atsam4e8e-pac", "atsam4e8e-pac/rt", "atsam4e8e-pac/critical-section"]
atsam4e16c = ["atsam4e", "atsam4e_c", "atsam4e16c-pac", "atsam4e16c-pac/rt", "atsam4e16c-pac/critical-section"]
atsam4e16e = ["atsam4e", "atsam4e_e", "atsam4e16e-pac", "atsam4e16e-pac/rt", "atsam4e16e-pac/critical-section"]
# atsam4n
atsam4n = []
atsam4n_a = [] # 48-pin
atsam4n_b = [] # 64-pin
atsam4n_c = [] # 100-pin
atsam4n8a = ["atsam4n", "atsam4n_a", "atsam4n8a-pac", "atsam4n8a-pac/rt", "atsam4n8a-pac/critical-section"]
atsam4n8b = ["atsam4n", "atsam4n_b", "atsam4n8b-pac", "atsam4n8b-pac/rt", "atsam4n8b-pac/critical-section"]
atsam4n8c = ["atsam4n", "atsam4n_c", "atsam4n8c-pac", "atsam4n8c-pac/rt", "atsam4n8c-pac/critical-section"]
atsam4n16b = ["atsam4n", "atsam4n_b", "atsam4n16b-pac", "atsam4n16b-pac/rt", "atsam4n16b-pac/critical-section"]
atsam4n16c = ["atsam4n", "atsam4n_c", "atsam4n16c-pac", "atsam4n16c-pac/rt", "atsam4n16c-pac/critical-section"]
# atsam4s
atsam4s = []
atsam4s_a = [] # 48-pin
atsam4s_b = [] # 64-pin
atsam4s_c = [] # 100-pin
atsam4s_ = [] # Single blank flash
atsam4sa = [] # Cache (CMCC)
atsam4sd = [] # Dual bank flash and cache (CMCC)
atsam4s2a = ["atsam4s", "atsam4s_", "atsam4s_a", "atsam4s2a-pac", "atsam4s2a-pac/rt", "atsam4s2a-pac/critical-section"]
atsam4s2b = ["atsam4s", "atsam4s_", "atsam4s_b", "atsam4s2b-pac", "atsam4s2b-pac/rt", "atsam4s2b-pac/critical-section"]
atsam4s2c = ["atsam4s", "atsam4s_", "atsam4s_c", "atsam4s2c-pac", "atsam4s2c-pac/rt", "atsam4s2c-pac/critical-section"]
atsam4s4a = ["atsam4s", "atsam4s_", "atsam4s_a", "atsam4s4a-pac", "atsam4s4a-pac/rt", "atsam4s4a-pac/critical-section"]
atsam4s4b = ["atsam4s", "atsam4s_", "atsam4s_b", "atsam4s4b-pac", "atsam4s4b-pac/rt", "atsam4s4b-pac/critical-section"]
atsam4s4c = ["atsam4s", "atsam4s_", "atsam4s_c", "atsam4s4c-pac", "atsam4s4c-pac/rt", "atsam4s4c-pac/critical-section"]
atsam4s8b = ["atsam4s", "atsam4s_", "atsam4s_b", "atsam4s8b-pac", "atsam4s8b-pac/rt", "atsam4s8b-pac/critical-section"]
atsam4s8c = ["atsam4s", "atsam4s_", "atsam4s_c", "atsam4s8c-pac", "atsam4s8c-pac/rt", "atsam4s8c-pac/critical-section"]
atsam4sa16b = ["atsam4s", "atsam4sa", "atsam4s_b", "atsam4sa16b-pac", "atsam4sa16b-pac/rt", "atsam4sa16b-pac/critical-section"]
atsam4sa16c = ["atsam4s", "atsam4sa", "atsam4s_c", "atsam4sa16c-pac", "atsam4sa16c-pac/rt", "atsam4sa16c-pac/critical-section"]
atsam4sd16b = ["atsam4s", "atsam4sd", "atsam4s_b", "atsam4sd16b-pac", "atsam4sd16b-pac/rt", "atsam4sd16b-pac/critical-section"]
atsam4sd16c = ["atsam4s", "atsam4sd", "atsam4s_c", "atsam4sd16c-pac", "atsam4sd16c-pac/rt", "atsam4sd16c-pac/critical-section"]
atsam4sd32b = ["atsam4s", "atsam4sd", "atsam4s_b", "atsam4sd32b-pac", "atsam4sd32b-pac/rt", "atsam4sd32b-pac/critical-section"]
atsam4sd32c = ["atsam4s", "atsam4sd", "atsam4s_c", "atsam4sd32c-pac", "atsam4sd32c-pac/rt", "atsam4sd32c-pac/critical-section"]