diff --git a/examples/bare6.rs b/examples/bare6.rs index 14e3faf77bcfd6743f16a219c5eba2eb236eafe5..55f7ce64caaceb8c6acf7d7707bbc262677d8a91 100644 --- a/examples/bare6.rs +++ b/examples/bare6.rs @@ -83,7 +83,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // mco2 : SYSCLK = 0b00 // mcopre : divide by 4 = 0b110 rcc.cfgr - .modify(|_, w| unsafe { w.mco2().bits(0b00).mco2pre().bits(0b110) }); + .modify(|_, w| unsafe { w.mco2().sysclk().mco2pre().bits(0b110) }); // power on GPIOC, RM0368 6.3.11 rcc.ahb1enr.modify(|_, w| w.gpiocen().set_bit()); @@ -203,7 +203,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // By searching for `mco2` you find the enumerations and functions. // So here // `w.mco2().bits{0b00}` is equivalent to -// `w.mco2().sysclk()` and improves readabiity. +// `w.mco2().sysclk()` and improves readability. // // Replace all bitpatterns used by the function name equivalents. //