From aae803adddd9e92fafe93932f770c75518d46e16 Mon Sep 17 00:00:00 2001
From: Hammarkvast <tomham-3@student.ltu.se>
Date: Wed, 8 Apr 2020 13:39:00 +0200
Subject: [PATCH] bare5_1

---
 examples/bare5.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/bare5.rs b/examples/bare5.rs
index 90ce206..df04e70 100644
--- a/examples/bare5.rs
+++ b/examples/bare5.rs
@@ -188,18 +188,18 @@ fn idle(rcc: &mut RCC, gpioa: &mut GPIOA) {
 
     loop {
         // set PA5 high
-        gpioa.BSRRH.write(1 << 5); // set bit, output hight (turn on led)
+        //gpioa.BSRRH.write(1 << 5); // set bit, output hight (turn on led)
                                    // alternatively to set the bit high we can
                                    // read the value, or with PA5 (bit 5) and write back
-                                   // gpioa.ODR.write(gpioa.ODR.read() | (1 << 5));
+        gpioa.ODR.write(gpioa.ODR.read() | (1 << 5));
 
         wait(10_000);
 
         // set PA5 low
-        gpioa.BSRRL.write(1 << 5); // clear bit, output low (turn off led)
+        //gpioa.BSRRL.write(1 << 5); // clear bit, output low (turn off led)
                                    // alternatively to clear the bit we can
                                    // read the value, mask out PA5 (bit 5) and write back
-                                   // gpioa.ODR.write(gpioa.ODR.read() & !(1 << 5));
+        gpioa.ODR.write(gpioa.ODR.read() & !(1 << 5));
         wait(10_000);
     }
 }
-- 
GitLab