Without this change, the following code results in the second call to freeze never returning - it gets stuck in the while loop that waits for the PLL to turn off (while self.cr.read().pllrdy().bit_is_set() {}).
let rcc = dp.RCC.constrain();
let rcc = rcc.freeze(hal::rcc::Config::pll());
let rcc = rcc.freeze(hal::rcc::Config::pll());
Without this change, the following code results in the second call to freeze never returning - it gets stuck in the while loop that waits for the PLL to turn off (
while self.cr.read().pllrdy().bit_is_set() {}
).