diff --git a/examples/rtic_bare4.rs b/examples/rtic_bare4.rs index e3d55a7a866d2e7f3767a33148c8baf2fab253f5..ed77a98b2d65ccdbefc6d7f0d7540152616e359a 100644 --- a/examples/rtic_bare4.rs +++ b/examples/rtic_bare4.rs @@ -71,10 +71,12 @@ const APP: () = { loop { // set PA5 high + //8.4.7 write_u32(GPIOA_BSRR, 1 << 5); // set bit, output hight (turn on led) wait(10_000); // set PA5 low + //8.4.7 write_u32(GPIOA_BSRR, 1 << (5 + 16)); // clear bit, output low (turn off led) wait(10_000); } @@ -97,7 +99,6 @@ const APP: () = { // // 2. Comment out line 38 and uncomment line 39 (essentially omitting the `unsafe`) // - // //unsafe { core::ptr::read_volatile(addr as *const _) } // core::ptr::read_volatile(addr as *const _) //