/* Set the msi run time range. Can only be called when MSI is either OFF, or when MSI is on  */
void rcc_set_msi_range(uint32_t msi_range)
/* Set the msi run time range. Can only be called when MSI is either OFF, or when MSI is on  */
void rcc_set_msi_range(uint32_t msi_range)
{
	uint32_t reg = RCC_CR;
	reg &= ~(RCC_CR_MSIRANGE_MASK << RCC_CR_MSIRANGE_SHIFT);
	reg |= msi_range << RCC_CR_MSIRANGE_SHIFT;
	RCC_CR = reg | RCC_CR_MSIRGSEL;
}