From bc7b138f7c178075246f9e91ff284a4794e49b44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vl=C4=83du=C8=9B-Andrei=20CHIN=C8=9AOIU?=
 <vladut.chintoiu@stud.fils.upb.ro>
Date: Fri, 7 Mar 2025 20:46:38 +0000
Subject: [PATCH 1/5] Update file slides.md

---
 slides/lectures/resources/rust-embedded/slides.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/slides/lectures/resources/rust-embedded/slides.md b/slides/lectures/resources/rust-embedded/slides.md
index 9bfe60e..ba2ff20 100644
--- a/slides/lectures/resources/rust-embedded/slides.md
+++ b/slides/lectures/resources/rust-embedded/slides.md
@@ -89,6 +89,7 @@ This is how a Rust application would look like
 #![no_main]
 
 use cortex_m_rt::entry;
+use core::panic::PanicInfo;
 
 #[entry]
 fn main() -> ! {
@@ -126,6 +127,7 @@ This is how a Rust application would look like
 
 use core::ptr::{read_volatile, write_volatile};
 use cortex_m_rt::entry;
+use core::panic::PanicInfo;
 
 const GPIOX_CTRL: u32 = 0x4001_4004;
 const GPIO_OE_SET: *mut u32= 0xd000_0024 as *mut u32;
@@ -141,7 +143,7 @@ pub fn panic(_info: &PanicInfo) -> ! {
 ```rust {all}{startLine:18}
 #[entry]
 fn main() -> ! {
-    let gpio_ctrl = GPIOX_CTRL + 8 * pin as *mut u32;
+    let gpio_ctrl = (GPIOX_CTRL + 8 * pin) as *mut u32;
     unsafe {
         write_volatile(gpio_ctrl, 5);
         write_volatile(GPIO_OE_SET, 1 << pin);
-- 
GitLab


From c66a8af762f8f5d466acc4592f02ecd81ef56589 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vl=C4=83du=C8=9B-Andrei=20CHIN=C8=9AOIU?=
 <vladut.chintoiu@stud.fils.upb.ro>
Date: Tue, 11 Mar 2025 20:29:56 +0000
Subject: [PATCH 2/5] Update file slides.md

---
 .../resources/rust-embedded/slides.md         | 26 +++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/slides/lectures/resources/rust-embedded/slides.md b/slides/lectures/resources/rust-embedded/slides.md
index ba2ff20..2de77e8 100644
--- a/slides/lectures/resources/rust-embedded/slides.md
+++ b/slides/lectures/resources/rust-embedded/slides.md
@@ -136,25 +136,25 @@ const GPIO_OUT_CLR:*mut u32= 0xd000_0018 as *mut u32;
 
 #[panic_handler]
 pub fn panic(_info: &PanicInfo) -> ! {
-    loop { }
+  loop { }
 }
 ```
 
 ```rust {all}{startLine:18}
 #[entry]
 fn main() -> ! {
-    let gpio_ctrl = (GPIOX_CTRL + 8 * pin) as *mut u32;
-    unsafe {
-        write_volatile(gpio_ctrl, 5);
-        write_volatile(GPIO_OE_SET, 1 << pin);
-        let reg = match value {
-        0 => GPIO_OUT_CLR,
-        _ => GPIO_OUT_SET
-        };
-        write_volatile(reg, 1 << pin);
-    };
-
-    loop { }
+  let gpio_ctrl = (GPIOX_CTRL + 8 * pin) as *mut u32;
+  unsafe {
+      write_volatile(gpio_ctrl, 5);
+      write_volatile(GPIO_OE_SET, 1 << pin);
+      let reg = match value {
+      0 => GPIO_OUT_CLR,
+      _ => GPIO_OUT_SET
+      };
+      write_volatile(reg, 1 << pin);
+  };
+
+  loop { }
 }
 ```
 
-- 
GitLab


From 6f48ac5cf11422139e6342c1046f60cf1131bcad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vl=C4=83du=C8=9B-Andrei=20CHIN=C8=9AOIU?=
 <vladut.chintoiu@stud.fils.upb.ro>
Date: Tue, 11 Mar 2025 20:32:47 +0000
Subject: [PATCH 3/5] Update file slides.md

---
 slides/lectures/resources/rust-embedded/slides.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slides/lectures/resources/rust-embedded/slides.md b/slides/lectures/resources/rust-embedded/slides.md
index 2de77e8..2963b2c 100644
--- a/slides/lectures/resources/rust-embedded/slides.md
+++ b/slides/lectures/resources/rust-embedded/slides.md
@@ -84,7 +84,7 @@ This is how a Rust application would look like
 
 <div grid="~ cols-2 gap-4">
 
-```rust{all|1|2|4|6|7,11|10|13-16}
+```rust{all|1|2|4,5|6|7,11|10|13-16}
 #![no_std]
 #![no_main]
 
-- 
GitLab


From 042f37b0ccb44d19b0fee9caf028db6be3b4ccb8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vl=C4=83du=C8=9B-Andrei=20CHIN=C8=9AOIU?=
 <vladut.chintoiu@stud.fils.upb.ro>
Date: Tue, 11 Mar 2025 21:30:23 +0000
Subject: [PATCH 4/5] Update file index.mdx

---
 website/lab/02/index.mdx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/lab/02/index.mdx b/website/lab/02/index.mdx
index fba0a1d..b166294 100644
--- a/website/lab/02/index.mdx
+++ b/website/lab/02/index.mdx
@@ -407,7 +407,7 @@ as they are connected to the lab board's debugger chip.
 
 The board provides four single colored LEDs, red, green, blue and yellow. Each one of them
 uses one pin for control. Each LED connector has one single hole on the board,
-marked with `RED`, `GREEN', `BLUE` and `YELLOW` respectively. These are located in the **Connectors**
+marked with `RED`, `GREEN`, `BLUE` and `YELLOW` respectively. These are located in the **Connectors**
 section of the board.
 
 The four switches that the lab board provides are signaled with labels
-- 
GitLab


From 6706a728b9b9609731dc5a4a05f136bc37a5183f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vl=C4=83du=C8=9B-Andrei=20CHIN=C8=9AOIU?=
 <vladut.chintoiu@stud.fils.upb.ro>
Date: Mon, 17 Mar 2025 15:01:52 +0000
Subject: [PATCH 5/5] Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Alexandru RADOVICI <alexandru.radovici@upb.ro>
---
 slides/lectures/resources/rust-embedded/slides.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slides/lectures/resources/rust-embedded/slides.md b/slides/lectures/resources/rust-embedded/slides.md
index 2963b2c..197c7bc 100644
--- a/slides/lectures/resources/rust-embedded/slides.md
+++ b/slides/lectures/resources/rust-embedded/slides.md
@@ -84,7 +84,7 @@ This is how a Rust application would look like
 
 <div grid="~ cols-2 gap-4">
 
-```rust{all|1|2|4,5|6|7,11|10|13-16}
+```rust{all|1|2|4,5|7|8,12|11|14-17}
 #![no_std]
 #![no_main]
 
-- 
GitLab