/* Select the low power mode used in deep sleep.  */
void pwr_set_low_power_mode_selection(uint32_t lpms)
/* Select the low power mode used in deep sleep.  */
void pwr_set_low_power_mode_selection(uint32_t lpms)
{
	uint32_t reg32;
	reg32 = PWR_CR1;
	reg32 &= ~(PWR_CR1_LPMS_MASK << PWR_CR1_LPMS_SHIFT);
	PWR_CR1 = (reg32 | (lpms << PWR_CR1_LPMS_SHIFT));
}