STM32. RTCv1. Fexed potential problem with RTC_CRL_RSF bit (bug 3593972).

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4887 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
barthess 2012-12-08 17:11:52 +00:00
parent a896b3f4f7
commit 38a63a16b6
2 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,10 @@ CH_IRQ_HANDLER(RTC_IRQHandler) {
*/
void rtc_lld_init(void){
/* RSF bit must be cleared by software after an APB1 reset or an APB1 clock
stop. Otherwise its value will not be actual. */
RTC->CRL &= ~RTC_CRL_RSF;
/* Required because access to PRL.*/
rtc_lld_apb1_sync();

View File

@ -79,6 +79,7 @@
*****************************************************************************
*** 2.4.3 ***
- FIX: Potential problem with RTC_CRL_RSF bit (bug 3593972)
- FIX: Fixed wrong stack initializations in GCC STM32L1xx port files (bug
3591321).
- FIX: Fixed different redefinition for __main_stack_end__ symbol (bug