Skip to content

Commit 3755f55

Browse files
Lab04 (#9)
* lab04 and use embassy from crates.io * fix pool size of ex3_1_v2 * update ex 5 and improve timings * update cargo.toml * fix traffic light * improve source * started working to write the comments * add comments for ex1, ex2, ex3 * add comments for ex4 and ex5 * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fixed typo * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> * fixed typos and added comments for ex6 * fix typo Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com> --------- Co-authored-by: Omer Genan <81963672+genan2003@users.noreply.github.com>
1 parent aef1556 commit 3755f55

21 files changed

Lines changed: 2181 additions & 159 deletions

Cargo.lock

Lines changed: 81 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
11
[workspace]
22
resolver = "3"
3-
members = ["lab01", "lab02", "lab03"]
3+
members = ["lab01", "lab02", "lab03", "lab04"]
4+
5+
[workspace.dependencies]
6+
# Low level access to Cortex-M processors
7+
cortex-m = { version = "0.7.7", features = [
8+
"critical-section-single-core",
9+
"inline-asm",
10+
] }
11+
# Boostrap crate for Cortex-M Processors
12+
cortex-m-rt = "0.7.5"
13+
# Defmt support
14+
defmt = "1.0.1"
15+
defmt-rtt = "1.1.0"
16+
# Embedded HAL utilities
17+
embassy-embedded-hal = { version = "0.5.0", features = [
18+
"defmt",
19+
] }
20+
# Async/await executor
21+
embassy-executor = { version = "0.9.0", features = [
22+
"arch-cortex-m",
23+
"defmt",
24+
"executor-thread",
25+
] }
26+
# Utilities for working with futures, compatible with no_std and not using alloc
27+
embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "3e8d8fe", version = "0.1.2" }
28+
embassy-stm32 = { version = "0.4.0", features = [
29+
"defmt",
30+
"exti",
31+
"memory-x",
32+
"stm32u545re",
33+
"time-driver-tim4",
34+
"unstable-pac",
35+
# "chrono",
36+
] }
37+
# Synchronization primitives and data structures with async support
38+
embassy-sync = { version = "0.7.2", features = [
39+
"defmt",
40+
] }
41+
# Timekeeping, delays and timeouts
42+
embassy-time = { version = "0.5.0", features = [
43+
"defmt",
44+
"defmt-timestamp-uptime",
45+
"tick-hz-32_768",
46+
] }
47+
# USB device
48+
embassy-usb = { version = "0.5.1", features = [
49+
"defmt",
50+
] }
51+
# Panic handler that exits `probe-run` with an error code
52+
panic-probe = { version = "1.0.0", features = ["print-defmt"] }

codebook.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
words = [
22
"boostrap",
33
"chrono",
4+
"debouncer",
45
"defmt",
6+
"dyn",
57
"eabihf",
68
"exti",
79
"ish",

lab01/Cargo.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]
7-
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
8-
cortex-m-rt = "0.7.5"
7+
# Low level access to Cortex-M processors
8+
cortex-m.workspace = true
9+
# Boostrap crate for Cortex-M Processors
10+
cortex-m-rt.workspace = true
911
cortex-m-semihosting = "0.5.0"
10-
defmt = "1.0.1"
11-
defmt-rtt = "1.1.0"
12-
panic-probe = { version = "1.0.0", features = ["print-defmt"] }
12+
# Defmt support
13+
defmt.workspace = true
14+
defmt-rtt.workspace = true
15+
# Panic handler that exits `probe-run` with an error code
16+
panic-probe.workspace = true

0 commit comments

Comments
 (0)