Add more RTC functions and an RTC example.

Thanks Lord James <lordjames@y7mail.com> for the patch!
This commit is contained in:
Uwe Hermann
2010-05-10 00:40:42 +02:00
parent 8195b1a718
commit 93fe67908a
9 changed files with 535 additions and 9 deletions

View File

@@ -465,3 +465,11 @@ void rcc_clock_setup_in_hse_16mhz_out_72mhz(void)
rcc_set_sysclk_source(SW_SYSCLKSEL_PLLCLK);
}
void rcc_backupdomain_reset(void)
{
/* Set the backup domain software reset. */
RCC_BDCR |= BDRST;
/* Clear the backup domain software reset. */
RCC_BDCR &= ~BDRST;
}