forked from stm32-rs/stm32f3xx-hal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
120 lines (102 loc) · 3.35 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
[package]
edition = "2018"
authors = ["Jorge Aparicio <[email protected]>", "Dylan Frankland <[email protected]>"]
categories = ["embedded", "hardware-support", "no-std"]
description = "Peripheral access API for STM32F3 series microcontrollers"
keywords = ["arm", "cortex-m", "stm32f3xx", "hal"]
license = "0BSD"
name = "stm32f3xx-hal"
readme = "README.md"
repository = "https://github.com/stm32-rs/stm32f3xx-hal"
documentation = "https://docs.rs/stm32f3xx-hal"
version = "0.5.0"
[package.metadata.docs.rs]
features = ["stm32f303xc", "rt", "stm32-usbd"]
targets = ["thumbv7em-none-eabihf"]
[dependencies]
cfg-if = "0.1"
cortex-m = "0.6"
cortex-m-rt = "0.6"
embedded-dma = "0.1"
embedded-hal = "0.2"
nb = "0.1"
paste = "1"
rtcc = "0.2"
stm32f3 = "0.12"
[dependencies.bare-metal]
version = "0.2"
features = ["const-fn"]
[dependencies.cast]
version = "0.2"
default-features = false
[dependencies.stm32-usbd]
version = "0.5"
optional = true
[dependencies.void]
version = "1"
default-features = false
[dev-dependencies]
panic-semihosting = "0.5"
usb-device = "0.2"
usbd-serial = "0.1"
cortex-m-semihosting = "0.3"
[features]
default = ["unproven"]
unproven = ["embedded-hal/unproven"]
device-selected = []
direct-call-deprecated = []
rt = ["stm32f3/rt"]
gpio-f302 = []
gpio-f303 = []
gpio-f303e = []
gpio-f333 = []
gpio-f373 = []
# Any Changes here should be mirrored in README.md, src/lib.rs, and
# .github/workflows/ci.yml.
stm32f301 = ["gpio-f302", "stm32f3/stm32f301", "device-selected"]
stm32f318 = ["gpio-f302", "stm32f3/stm32f301", "device-selected"]
stm32f302 = ["stm32f3/stm32f302", "direct-call-deprecated"]
stm32f302x6 = ["stm32f302", "gpio-f302", "device-selected"]
stm32f302x8 = ["stm32f302", "gpio-f302", "device-selected"]
stm32f302xb = ["stm32f302", "gpio-f303", "device-selected"]
stm32f302xc = ["stm32f302", "gpio-f303", "device-selected"]
stm32f302xd = ["stm32f302", "gpio-f303e", "device-selected"]
stm32f302xe = ["stm32f302", "gpio-f303e", "device-selected"]
stm32f303 = ["stm32f3/stm32f303", "direct-call-deprecated"]
stm32f303x6 = ["stm32f303", "gpio-f333", "device-selected"]
stm32f303x8 = ["stm32f303", "gpio-f333", "device-selected"]
stm32f303xb = ["stm32f303", "gpio-f303", "stm32-usbd/ram_access_1x16", "device-selected"]
stm32f303xc = ["stm32f303", "gpio-f303", "stm32-usbd/ram_access_1x16", "device-selected"]
stm32f303xd = ["stm32f303", "gpio-f303e", "stm32-usbd/ram_access_2x16", "device-selected"]
stm32f303xe = ["stm32f303", "gpio-f303e", "stm32-usbd/ram_access_2x16", "device-selected"]
stm32f373 = ["gpio-f373", "stm32f3/stm32f373", "device-selected"]
stm32f378 = ["gpio-f373", "stm32f3/stm32f373", "device-selected"]
stm32f334 = ["gpio-f333", "stm32f3/stm32f3x4", "device-selected"]
stm32f328 = ["gpio-f333", "stm32f3/stm32f3x8", "device-selected"]
stm32f358 = ["gpio-f303", "stm32f3/stm32f3x8", "device-selected"]
stm32f398 = ["gpio-f303e", "stm32f3/stm32f3x8", "device-selected"]
[profile.dev]
debug = true
lto = true
[profile.release]
debug = true
lto = true
opt-level = "s"
[[example]]
name = "pwm"
required-features = ["stm32f303xc"]
[[example]]
name = "toggle"
required-features = ["rt", "stm32f303xc"]
[[example]]
name = "usb_serial"
required-features = ["rt", "stm32f303xc", "stm32-usbd"]
[[example]]
name = "spi"
required-features = ["stm32f303"]
[[example]]
name = "serial_dma"
required-features = ["stm32f303"]
[[example]]
name = "adc"
required-features = ["stm32f303"]