-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
127 lines (100 loc) · 3.91 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[package]
edition = "2021"
authors = ["Alexis Marquet <[email protected]>"]
name = "lpc546xx-hal"
categories = ["embedded", "hardware-support", "no-std"]
description = "Peripheral access API for LPC546xx series microcontrollers"
documentation = "https://docs.rs/crate/lpc546xx-hal"
keywords = ["arm", "cortex-m", "lpc546xx", "hal"]
license = "0BSD"
readme = "README.md"
repository = "https://github.com/lpc-rs/lpc546xx-hal"
version = "0.2.1"
[package.metadata.docs.rs]
features = ["mcu-LPC54628J512ET180", "rt"]
targets = ["thumbv7em-none-eabihf"]
[workspace]
members = ["self-tests"]
[dependencies]
cortex-m = "0.7.0"
cortex-m-rt = "0.7.0"
embedded-hal = {version = "0.2.6", features = ["unproven"]}
embedded-time = "0.12.1"
nb = "1.0.0"
lpc546xx-pac = "0.2.1"
void = { version = "1.0.2", default-features = false }
lpc-usbd = "0.1.0"
usb-device = "0.2.8"
usbd-serial = "0.1.1"
rtcc = "0.3.0"
[dependencies.num]
version = "0.4"
default-features = false
[dev-dependencies]
defmt = "0.3.2"
defmt-rtt = "0.3.2"
defmt-test = "0.3.0"
# flip-link = "0.1.5"
[dev-dependencies.panic-probe]
version = "0.3.0"
features = ["print-defmt"]
[features]
rt = ["lpc546xx-pac/rt"]
disable-linker-script = []
disable-pre-init-blob = []
# Features based on Flash size (in kbytes)
flash-256 = []
flash-512 = []
# Features based on RAM size (in kbytes)
ram-136 = []
ram-200 = []
# Physical packages
io-100 = []
io-180 = []
io-208 = []
# Subfamily
lpc54605 = ["lpc546xx-pac/lpc54605"]
lpc54606 = ["lpc546xx-pac/lpc54606"]
lpc54607 = ["lpc546xx-pac/lpc54607"]
lpc54608 = ["lpc546xx-pac/lpc54608"]
lpc54616 = ["lpc546xx-pac/lpc54616"]
lpc54618 = ["lpc546xx-pac/lpc54618"]
lpc54628 = ["lpc546xx-pac/lpc54628"]
# available # of FLEXCOMM
flexcomm-9 = []
flexcomm-10 = []
mcu-LPC54605J512ET100 = ["lpc54605","flash-512", "ram-200","io-100", "flexcomm-9"]
mcu-LPC54605J256ET100 = ["lpc54605","flash-256", "ram-136","io-100", "flexcomm-9"]
mcu-LPC54605J512BD100 = ["lpc54605","flash-512", "ram-200","io-100", "flexcomm-9"]
mcu-LPC54605J256BD100 = ["lpc54605","flash-256", "ram-136","io-100", "flexcomm-9"]
mcu-LPC54605J512ET180 = ["lpc54605","flash-512", "ram-200","io-180", "flexcomm-10"]
mcu-LPC54605J256ET180 = ["lpc54605","flash-256", "ram-136","io-180", "flexcomm-10"]
mcu-LPC54606J512BD100 = ["lpc54606","flash-512", "ram-200","io-100", "flexcomm-9"]
mcu-LPC54606J256BD100 = ["lpc54606","flash-256", "ram-136","io-100", "flexcomm-9"]
mcu-LPC54606J512ET100 = ["lpc54606","flash-512", "ram-200","io-100", "flexcomm-9"]
mcu-LPC54606J256ET100 = ["lpc54606","flash-256", "ram-136","io-100", "flexcomm-9"]
mcu-LPC54606J512BD208 = ["lpc54606","flash-512", "ram-200","io-208", "flexcomm-10"]
mcu-LPC54606J256ET180 = ["lpc54606","flash-256", "ram-136","io-180", "flexcomm-10"]
mcu-LPC54607J256BD208 = ["lpc54607","flash-256", "ram-136","io-208", "flexcomm-10"]
mcu-LPC54607J512ET180 = ["lpc54607","flash-512", "ram-200","io-180", "flexcomm-10"]
mcu-LPC54607J256ET180 = ["lpc54607","flash-256", "ram-136","io-180", "flexcomm-10"]
mcu-LPC54608J512BD208 = ["lpc54608","flash-512", "ram-200","io-208", "flexcomm-10"]
mcu-LPC54608J512ET180 = ["lpc54608","flash-512", "ram-200","io-180", "flexcomm-10"] # <- LPCXpresso54608
mcu-LPC54616J512BD100 = ["lpc54616","flash-512", "ram-200","io-100", "flexcomm-9"]
mcu-LPC54616J512ET100 = ["lpc54616","flash-512", "ram-200","io-100", "flexcomm-9"]
mcu-LPC54616J512BD208 = ["lpc54616","flash-512", "ram-200","io-208", "flexcomm-10"]
mcu-LPC54616J256ET180 = ["lpc54616","flash-256", "ram-136","io-180", "flexcomm-10"]
mcu-LPC54618J512BD208 = ["lpc54618","flash-512", "ram-200","io-208", "flexcomm-10"]
mcu-LPC54618J512ET180 = ["lpc54618","flash-512", "ram-200","io-180", "flexcomm-10"]
mcu-LPC54628J512ET180 = ["lpc54628","flash-512", "ram-200","io-180", "flexcomm-10"]
[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = "s"
overflow-checks = false
[[example]]
name = "gpio"
required-features = ["rt"]