/* Unconditionally switch the system clock source to HSI.  */
static __unused void stm32_clock_switch_to_hsi(void)
/* Unconditionally switch the system clock source to HSI.  */
static __unused void stm32_clock_switch_to_hsi(void)
{
	if (LL_RCC_HSI_IsReady() != 1) {
		LL_RCC_HSI_Enable();
		while (LL_RCC_HSI_IsReady() != 1) {
		}
	}
	LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_HSI);
	while (LL_RCC_GetSysClkSource() != LL_RCC_SYS_CLKSOURCE_STATUS_HSI) {
	}
}