-
Notifications
You must be signed in to change notification settings - Fork 67
/
Cargo.toml
92 lines (77 loc) · 2.32 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
[package]
edition = "2018"
authors = ["Jorge Aparicio <jorge@japaric.io>", "Dylan Frankland <dylan@frankland.io>"]
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"
repository = "https://github.com/stm32-rs/stm32f3xx-hal"
documentation = "https://docs.rs/stm32f3xx-hal"
version = "0.4.0"
[package.metadata.docs.rs]
features = ["stm32f303xc", "rt", "stm32-usbd"]
[badges]
travis-ci = { repository = "stm32-rs/stm32f3xx-hal" }
[dependencies]
cortex-m = ">=0.5.8,<0.7"
cortex-m-rt = "0.6.8"
embedded-hal = "0.2.3"
nb = "0.1.2"
stm32f3 = "0.9.0"
[dependencies.bare-metal]
version = "0.2.4"
features = ["const-fn"]
[dependencies.cast]
default-features = false
version = "0.2.2"
[dependencies.void]
default-features = false
version = "1.0.2"
[dependencies.stm32-usbd]
version = "0.5.0"
optional = true
[dev-dependencies]
panic-semihosting = "0.5.2"
usb-device = "0.2.3"
usbd-serial = "0.1.0"
[features]
default = ["unproven"]
device-selected = []
rt = ["stm32f3/rt"]
stm32f301 = ["stm32f3/stm32f301", "device-selected"]
stm32f318 = ["stm32f3/stm32f3x8", "device-selected"]
stm32f302 = ["stm32f3/stm32f302", "device-selected"]
stm32f303 = ["stm32f3/stm32f303", "device-selected"]
stm32f303xb = ["stm32f303", "stm32-usbd/ram_access_1x16"]
stm32f303xc = ["stm32f303", "stm32-usbd/ram_access_1x16"]
stm32f303xd = ["stm32f303", "stm32-usbd/ram_access_2x16"]
stm32f303xe = ["stm32f303", "stm32-usbd/ram_access_2x16"]
stm32f303x6 = ["stm32f303"]
stm32f303x8 = ["stm32f303"]
stm32f373 = ["stm32f3/stm32f373", "device-selected"]
stm32f378 = ["stm32f3/stm32f3x8", "device-selected"]
stm32f334 = ["stm32f3/stm32f3x4", "device-selected"]
stm32f328 = ["stm32f3/stm32f3x8", "device-selected"]
stm32f358 = ["stm32f3/stm32f3x8", "device-selected"]
stm32f398 = ["stm32f3/stm32f3x8", "device-selected"]
unproven = ["embedded-hal/unproven"]
[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"]