I'm writing some kind of safe system clock configuration and a bit paranoid. Setup starts with enabling HSE and after stable, it is used as a source for PLL. If HSE fails my program switching to HSI and enables PLL ones again with HSI as a source and...