/* Perform basic hardware initialization at boot. 
This needs to be run from the very beginning. So the init priority has to be 0 (zero). */
static int stm32l5_init(void)
/* Perform basic hardware initialization at boot. 
This needs to be run from the very beginning. So the init priority has to be 0 (zero). */
static int stm32l5_init(void)
{
	while (LL_ICACHE_IsActiveFlag_BUSY()) {
	}
	LL_ICACHE_Enable();
	SystemCoreClock = 4000000;
	LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
	LL_PWR_SetRegulVoltageScaling(LL_PWR_REGU_VOLTAGE_SCALE0);
	LL_PWR_DisableUCPDDeadBattery();
	return 0;
}