diff --git a/examples/bare5.rs b/examples/bare5.rs index 96f9f8160cdbddeed9bbd5c446e65d3651fcf416..be4f6373c44dde82a025bcbd6c6f6aacaf85d2f0 100644 --- a/examples/bare5.rs +++ b/examples/bare5.rs @@ -186,14 +186,14 @@ 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.ODR.write(gpioa.ODR.read() | (1 << 5)); + // gpioa.BSRRH.write(1 << 5); // set bit, output hight (turn on led) + 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.ODR.write(gpioa.ODR.read() & !(1 << 5)); + // gpioa.BSRRL.write(1 << 5); // clear bit, output low (turn off led) + gpioa.ODR.write(gpioa.ODR.read() & !(1 << 5)); wait(10_000); } }