Skip to content

Commit 61d1158

Browse files
committed
samples: embassy: Remove overly specific imports
Import the embassy crates, but not by path. Also remove the specific time instance. Signed-off-by: David Brown <[email protected]>
1 parent e072590 commit 61d1158

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

samples/embassy/Cargo.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@ features = [
2828

2929
[dependencies.embassy-futures]
3030
version = "0.1.1"
31-
# path = "../../embassy/embassy-futures"
3231

3332
[dependencies.embassy-sync]
3433
version = "0.6.2"
35-
# path = "../../embassy/embassy-sync"
3634

3735
[dependencies.embassy-time]
3836
version = "0.4.0"
39-
# path = "../../embassy/embassy-time"
40-
# This is board specific.
41-
features = ["tick-hz-10_000"]
37+
# For real builds, you should figure out your target's tick rate and set the appropriate feature,
38+
# like in these examples. Without this, embassy-time will assume a 1Mhz tick rate, and every time
39+
# operation will involve a conversion.
40+
#features = ["tick-hz-10_000"]
4241

4342
[dependencies.critical-section]
4443
version = "1.2"

0 commit comments

Comments
 (0)