/
Cargo.toml
126 lines (98 loc) · 2.89 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
[package]
name = "nucleo-h7xx"
version = "0.2.1"
authors = [ "Antoine van Gelder <antoine@flowdsp.io>" ]
edition = "2018"
license = "MIT"
description = "Board support crate for the STMicroelectronics STM32H7 Nucleo-144 boards."
repository = "https://github.com/antoinevg/nucleo-h7xx"
documentation = "https://github.com/antoinevg/nucleo-h7xx/wiki"
categories = [
"embedded",
"hardware-support",
"no-std",
]
keywords = [
"cortex-m",
"bsp",
"stm32",
"stm32h7xx",
"nucleo",
]
readme = "README.md"
exclude = [
"testsuite/*",
"openocd.cfg",
"openocd.gdb",
]
[package.metadata.docs.rs]
features = []
targets = [ "thumbv7em-none-eabihf" ]
# - workspace -----------------------------------------------------------------
# TODO Workspace feature is blocked: https://github.com/rust-lang/cargo/issues/7004
#[workspace]
#members = [
# "testsuite"
#]
# - features ------------------------------------------------------------------
[features]
default = []
ethernet = [ "stm32h7xx-hal/ethernet", "smoltcp" ]
defmt = [ "stm32h7xx-hal/defmt" ]
button-1-pa0 = [] # SB81=on, SB82=off
led-1-pa5 = [] # SB65=on, SB54=off
log-semihosting = [ "cortex-m-semihosting" ]
log-itm = []
log-rtt = []
# - dependencies --------------------------------------------------------------
[dependencies]
cortex-m = "0.7.6"
cortex-m-rt = { version = "0.7.1" }
stm32h7xx-hal = { version = "0.13.0", features = [ "stm32h747cm7" ] }
embedded-timeout-macros = "0.3.0"
heapless = "0.7.16"
nb = "1.0.0"
void = { version = "1.0.2", default-features = false }
# - optional dependencies
smoltcp = { version = "0.8.1", default-features = false, features = [
"medium-ethernet",
"proto-ipv4",
"proto-ipv6",
"socket-raw",
"socket-udp"
], optional = true }
cortex-m-semihosting = { version = "0.5.0", optional = true }
# - dev dependencies ----------------------------------------------------------
[dev-dependencies]
cfg-if = "1.0.0"
cortex-m-log = { version = "0.7.0", features = [ "itm", "semihosting", "log-integration" ] }
lazy_static = { version = "1.4.0", features = [ "spin_no_std" ] }
log = "0.4.14"
panic-halt = "0.2.0"
panic-itm = { version = "0.4.2" }
panic-rtt-target = { version = "0.1.1", features = [ "cortex-m" ] }
panic-semihosting = { version = "0.6.0" }
rtt-target = { version = "0.3.1", features = [ "cortex-m" ] }
# - profiles ------------------------------------------------------------------
[profile.dev]
[profile.release]
debug = true
# - examples ------------------------------------------------------------------
[[example]]
name = "blinky"
required-features = []
[[example]]
name = "blinky_hal"
required-features = []
[[example]]
name = "blinky_pac"
required-features = []
[[example]]
name = "ethernet"
required-features = [ "ethernet" ]
[[example]]
name = "ethernet_hal"
required-features = [ "ethernet", "log-semihosting" ]
[[example]]
name = "itm"
required-features = [ "log-itm" ]