From aecf8eb65c1d18373679b3e2ff7c05ff8de51d56 Mon Sep 17 00:00:00 2001 From: Ridgep <ridpet-5@student.ltu.se> Date: Sat, 9 Mar 2019 18:58:45 +0100 Subject: [PATCH] bare6_5 --- examples/bare6.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bare6.rs b/examples/bare6.rs index 14e3faf..55f7ce6 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. // -- GitLab