-
Notifications
You must be signed in to change notification settings - Fork 179
/
Cargo.toml
153 lines (124 loc) · 3.3 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[package]
edition = "2021"
rust-version = "1.59"
authors = ["Jorge Aparicio <jorge@japaric.io>", "Daniel Egger <daniel@eggers-club.de>"]
categories = ["embedded", "hardware-support", "no-std"]
description = "HAL for the STM32F1xx family of microcontrollers"
keywords = ["arm", "cortex-m", "stm32", "hal"]
license = "MIT OR Apache-2.0"
name = "stm32f1xx-hal"
repository = "https://github.com/stm32-rs/stm32f1xx-hal"
documentation = "https://docs.rs/stm32f1xx-hal"
readme = "README.md"
version = "0.10.0"
[package.metadata.docs.rs]
features = ["stm32f103", "rtic", "high"]
default-target = "x86_64-unknown-linux-gnu"
[dependencies]
defmt = { version = "0.3.8", optional = true }
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.3"
nb = "1.1"
embedded-dma = "0.2.0"
bxcan = "0.8.0"
void = { default-features = false, version = "1.0.2" }
fugit = "0.3.7"
fugit-timer = "0.1.3"
rtic-monotonic = { version = "1.0", optional = true }
bitflags = "1.3.2"
vcell = "0.1.3"
[dependencies.stm32f1]
package = "stm32f1-staging"
version = "0.16.0"
features = ["atomics"]
[dependencies.embedded-hal-02]
package = "embedded-hal"
version = "0.2.7"
features = ["unproven"]
[dependencies.embedded-hal]
version = "1.0"
[dependencies.embedded-hal-nb]
version = "1.0"
[dependencies.embedded-io]
version = "0.6.1"
[dependencies.stm32-usbd]
version = "0.7.0"
optional = true
[dev-dependencies]
panic-halt = "0.2.0"
panic-semihosting = "0.6.0"
panic-itm = "0.4.2"
cortex-m-rtic = "1.1.3"
cortex-m-semihosting = "0.5.0"
heapless = "0.8.0"
mfrc522 = { version = "0.7.0", features = ["eh02"] }
mpu9250 = "0.25.0"
usb-device = "0.3.2"
usbd-serial = "0.2.2"
[features]
doc = []
stm32f100 = ["stm32f1/stm32f100"]
stm32f101 = ["stm32f1/stm32f101"]
stm32f103 = ["stm32f1/stm32f103", "has-can", "stm32-usbd"]
stm32f105 = ["stm32f1/stm32f107", "connectivity"]
stm32f107 = ["stm32f1/stm32f107", "connectivity"]
defmt = ["dep:defmt", "stm32f1/defmt"]
# Devices with 64 or 128 Kb ROM
medium = []
# Devices with 256 or 512 Kb ROM
high = ["medium", "has-dac"]
# Devices with 768 Kb ROM or more
xl = ["high"]
# Connectivity line devices (`stm32f105xx` and `stm32f107xx`)
connectivity = ["medium", "has-can", "has-dac"]
# Devices with CAN interface
has-can = []
# Devices with Dac
has-dac = []
rtic = ["rtic-monotonic"]
[profile.dev]
incremental = false
codegen-units = 1
[profile.release]
codegen-units = 1
debug = true
lto = true
[[example]]
name = "usb_serial"
required-features = ["stm32f103", "stm32-usbd"]
[[example]]
name = "usb_serial_interrupt"
required-features = ["stm32f103", "stm32-usbd"]
[[example]]
name = "usb_serial_rtic"
required-features = ["stm32f103", "stm32-usbd"]
[[example]]
name = "blinky_timer_irq"
required-features = []
[[example]]
name = "blinky_rtcalarm_irq"
required-features = []
[[example]]
name = "qei"
required-features = ["medium"]
[[example]]
name = "timer-interrupt-rtic"
required-features = ["stm32f103", "medium"]
[[example]]
name = "exti"
required-features = []
[[example]]
name = "can-echo"
required-features = ["has-can"]
[[example]]
name = "can-loopback"
required-features = ["has-can"]
[[example]]
name = "can-rtic"
required-features = ["has-can"]
[[example]]
name = "gpio_input"
required-features = ["stm32f103"]
[[example]]
name = "serial-interrupt-idle"
required-features = ["stm32f103", "medium"]