Skip to content

Commit

Permalink
Merge pull request #8493 from jeromecoutant/PR_PREDIVS
Browse files Browse the repository at this point in the history
STM32 RTC : Prescaler macro issue
  • Loading branch information
Cruz Monrreal authored Oct 23, 2018
2 parents 5b7f4a3 + a955223 commit 5bf901b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion targets/TARGET_STM/rtc_api_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void rtc_deactivate_wake_up_timer(void);

/* PREDIV_S : 15-bit synchronous prescaler */
/* PREDIV_S is set in order to get a 1 Hz clock */
#define PREDIV_S_VALUE RTC_CLOCK / (PREDIV_A_VALUE + 1) - 1
#define PREDIV_S_VALUE (RTC_CLOCK / (PREDIV_A_VALUE + 1) - 1)

/** Synchronise the RTC shadow registers.
*
Expand Down

0 comments on commit 5bf901b

Please sign in to comment.