File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ Maintainer: Miguel Luis and Gregory Cristian
3535/*!
3636 * RTC Time base in ms
3737 */
38- #define RTC_ALARM_TICK_DURATION 0.48828125 // 1 tick every 488us
38+ #define RTC_ALARM_TICK_DURATION 0.12207031 // 1 tick every 122us
3939
4040/*!
4141 * RTC Time base in ms
4242 */
43- #define RTC_ALARM_TICK_PER_MS 2.048 // 1/2.048 = tick duration in ms
44-
43+ #define RTC_ALARM_TICK_PER_MS 8.192 // 1/8.192 = tick duration in ms
4544
4645/*!
4746 * Number of seconds in a minute
@@ -141,8 +140,8 @@ void RtcInit( void )
141140
142141 RtcHandle .Instance = RTC ;
143142 RtcHandle .Init .HourFormat = RTC_HOURFORMAT_24 ;
144- RtcHandle .Init .AsynchPrediv = 3 ;
145- RtcHandle .Init .SynchPrediv = 3 ;
143+ RtcHandle .Init .AsynchPrediv = 1 ;
144+ RtcHandle .Init .SynchPrediv = 1 ;
146145
147146 RtcHandle .Init .OutPut = RTC_OUTPUT_DISABLE ;
148147 RtcHandle .Init .OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH ;
Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ Maintainer: Miguel Luis and Gregory Cristian
3535/*!
3636 * RTC Time base in ms
3737 */
38- #define RTC_ALARM_TICK_DURATION 0.48828125 // 1 tick every 488us
38+ #define RTC_ALARM_TICK_DURATION 0.12207031 // 1 tick every 122us
3939
4040/*!
4141 * RTC Time base in ms
4242 */
43- #define RTC_ALARM_TICK_PER_MS 2.048 // 1/2.048 = tick duration in ms
44-
43+ #define RTC_ALARM_TICK_PER_MS 8.192 // 1/8.192 = tick duration in ms
4544
4645/*!
4746 * Number of seconds in a minute
@@ -141,8 +140,8 @@ void RtcInit( void )
141140
142141 RtcHandle .Instance = RTC ;
143142 RtcHandle .Init .HourFormat = RTC_HOURFORMAT_24 ;
144- RtcHandle .Init .AsynchPrediv = 3 ;
145- RtcHandle .Init .SynchPrediv = 3 ;
143+ RtcHandle .Init .AsynchPrediv = 1 ;
144+ RtcHandle .Init .SynchPrediv = 1 ;
146145
147146 RtcHandle .Init .OutPut = RTC_OUTPUT_DISABLE ;
148147 RtcHandle .Init .OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH ;
Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ Maintainer: Miguel Luis and Gregory Cristian
3535/*!
3636 * RTC Time base in ms
3737 */
38- #define RTC_ALARM_TICK_DURATION 0.48828125 // 1 tick every 488us
38+ #define RTC_ALARM_TICK_DURATION 0.12207031 // 1 tick every 122us
3939
4040/*!
4141 * RTC Time base in ms
4242 */
43- #define RTC_ALARM_TICK_PER_MS 2.048 // 1/2.048 = tick duration in ms
44-
43+ #define RTC_ALARM_TICK_PER_MS 8.192 // 1/8.192 = tick duration in ms
4544
4645/*!
4746 * Number of seconds in a minute
@@ -141,8 +140,8 @@ void RtcInit( void )
141140
142141 RtcHandle .Instance = RTC ;
143142 RtcHandle .Init .HourFormat = RTC_HOURFORMAT_24 ;
144- RtcHandle .Init .AsynchPrediv = 3 ;
145- RtcHandle .Init .SynchPrediv = 3 ;
143+ RtcHandle .Init .AsynchPrediv = 1 ;
144+ RtcHandle .Init .SynchPrediv = 1 ;
146145
147146 RtcHandle .Init .OutPut = RTC_OUTPUT_DISABLE ;
148147 RtcHandle .Init .OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH ;
You can’t perform that action at this time.
0 commit comments