/* Disable or enable write-protection of RTC module registers  */
static void stm32f2_rtc_write_enable(int enable)
/* Disable or enable write-protection of RTC module registers  */
static void stm32f2_rtc_write_enable(int enable)
{
	if (enable) {
		STM32_RTC->wpr = 0xca;
		STM32_RTC->wpr = 0x53;
	} else {
		STM32_RTC->wpr = 0xff;
	}
}