forked from antoinevg/daisy_bsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
144 lines (110 loc) · 2.9 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
[package]
name = "daisy_bsp"
version = "0.4.2"
authors = ["Antoine van Gelder <[email protected]>"]
edition = "2018"
license = "MIT"
description = "A board support package for the Electro-Smith Daisy Seed"
repository = "https://github.com/antoinevg/daisy_bsp"
documentation = "https://github.com/antoinevg/daisy_bsp/wiki"
categories = [
"embedded",
"hardware-support",
"no-std",
]
keywords = [
"cortex-m",
"bsp",
"stm32h7xx",
"daisy",
]
readme = "README.md"
[package.metadata.docs.rs]
features = [ "seed", "pod", "petal", "patch", "field" ]
targets = ["thumbv7em-none-eabihf"]
# - dependencies --------------------------------------------------------------
[dependencies]
cortex-m = "^0.7.1"
cortex-m-rt = { version = "^0.6.13", features = ["device"] }
stm32h7xx-hal = { version = "0.11.0", features = [ "stm32h750v", "rt", "revision_v", "usb_hs" ] }
cty = "0.2.1"
cortex-m-semihosting = "0.3.5"
# - optional dependencies used by features
[dependencies.static-alloc]
version = "0.2.2"
optional = true
[dependencies.without-alloc]
version = "0.2.1"
optional = true
# - optional dependencies used by examples
[dependencies.num]
version = "0.3.1"
default-features = false
features = [ "libm" ]
optional = true
[dependencies.num-derive]
version = "0.3.3"
default-features = false
optional = true
[dependencies.num-traits]
version = "0.2.14"
default-features = false
optional = true
# - dev dependencies ----------------------------------------------------------
[dev-dependencies]
panic-itm = { version = "~0.4.1" }
panic-halt = "0.2.0"
panic-semihosting = { version = "0.5.6" }
# - features ------------------------------------------------------------------
[features]
default = [ "seed" ]
alloc = [ "static-alloc", "without-alloc" ] # requires rust nightly
seed = []
pod = []
petal = []
patch = []
field = []
log-itm = []
uses_num = [ "num", "num-derive", "num-traits" ]
# - profiles ------------------------------------------------------------------
[profile.dev]
debug = true
incremental = false
opt-level = "s" # optimize for binary size
[profile.release]
debug = true
opt-level = "s" # optimize for binary size
# - examples ------------------------------------------------------------------
[[example]]
name = "blinky"
required-features = [ "seed" ]
[[example]]
name = "blinky_pac"
required-features = [ "seed" ]
[[example]]
name = "blinky_hal"
required-features = [ "seed" ]
[[example]]
name = "button"
required-features = [ "seed" ]
[[example]]
name = "audio_passthrough"
required-features = [ "seed" ]
[[example]]
name = "audio_testsignal"
required-features = [ "seed" ]
[[example]]
name = "audio_midi"
required-features = [ "alloc", "seed", "uses_num" ]
[[example]]
name = "serial"
required-features = [ "seed" ]
[[example]]
name = "adc_hal"
required-features = [ "seed" ]
[[example]]
name = "adc_bsp"
required-features = [ "seed" ]
[[example]]
name = "itm"
required-features = [ "seed", "log-itm" ]