-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
106 lines (90 loc) · 2.57 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
[package]
name = "py32f0xx-hal"
version = "0.3.0"
authors = [
"creatoy@yeah.net",
"Greg Green <ggreen@bit-builder.com>",
]
edition = "2021"
keywords = ["arm", "cortex-m", "py32f0xx", "hal"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/py32-rust/py32f0xx-hal"
categories = ["embedded", "hardware-support", "no-std"]
description = "Peripheral access API for py32F0 series microcontrollers"
documentation = "https://docs.rs/crate/py32f0xx-hal"
[package.metadata.docs.rs]
features = ["py32f030", "rt", "rtic"]
targets = ["thumbv6m-none-eabi"]
[dependencies]
bare-metal = { version = "1.0.0" }
cast = "0.3.0"
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
py32f0 = "0.2.1"
embedded-hal = "1.0"
embedded-hal-nb = "1.0"
embedded-dma = "0.2.0"
embedded-io = "0.6.1"
nb = "1.1.0"
void = { version = "1.0.2", default-features = false }
defmt = { version = "0.3.8", optional = true }
fugit = "0.3.7"
fugit-timer = "0.1.3"
rtic-monotonic = { version = "1.0", optional = true }
[dependencies.embedded-hal-02]
package = "embedded-hal"
version = "0.2.7"
features = ["unproven"]
[dev-dependencies]
cortex-m-rt = "0.7.3"
panic-halt = "0.2.0"
panic-probe = { version = "0.3.2", features = ["print-defmt"] }
defmt = "0.3.8"
defmt-rtt = "0.4.1"
mfrc522 = "0.6.1"
[features]
device-selected = []
rt = ["py32f0/rt"]
py32f030 = ["py32f0/py32f030", "device-selected", "with-dma"]
py32f003 = ["py32f0/py32f003", "device-selected", "with-dma"]
py32f002a = ["py32f0/py32f002a", "device-selected"]
py32f002b = ["py32f0/py32f002b", "device-selected"]
defmt = ["dep:defmt"]
# Features based on Flash size (in kbytes)
flash-16 = []
flash-20 = []
flash-24 = []
flash-32 = []
flash-48 = []
flash-64 = []
# Features based on RAM size (in kbytes)
ram-2 = []
ram-3 = []
ram-4 = []
ram-6 = []
ram-8 = []
# optional peripherals
with-dma = []
# MCU aliases
#
# Features correspond specific mcu series
# Note: The easiest way to pick the proper package feature is to apply
# the matching feature for your MCU!
py32f030xx4 = ["py32f030", "flash-16", "ram-2"]
py32f030xx6 = ["py32f030", "flash-32", "ram-4"]
py32f030xx7 = ["py32f030", "flash-48", "ram-6"]
py32f030xx8 = ["py32f030", "flash-64", "ram-8"]
py32f003xx4 = ["py32f003", "flash-16", "ram-2"]
py32f003xx6 = ["py32f003", "flash-32", "ram-4"]
py32f003xx8 = ["py32f003", "flash-64", "ram-8"]
py32f002ax5 = ["py32f002a", "flash-20", "ram-3"]
py32f002bx5 = ["py32f002b", "flash-24", "ram-3"]
# rtic os
rtic = ["dep:rtic-monotonic"]
[profile.dev]
debug = true
lto = true
[profile.release]
lto = true
debug = true
opt-level = "s"