At least: font code generator, exchange code support for color 128x128
This commit is contained in:
@@ -178,7 +178,7 @@ ReturnCode RtcDriver::set_time(const Common::WallClockTime &wall_time)
|
||||
SET_TO(time, RTC_TR_MNT, wall_time.get_minutes_tens() << RTC_TR_MNT_Pos);
|
||||
SET_TO(time, RTC_TR_MNU, wall_time.get_minutes_ones() << RTC_TR_MNU_Pos);
|
||||
SET_TO(time, RTC_TR_ST, wall_time.get_seconds_tens() << RTC_TR_ST_Pos);
|
||||
SET_TO(time, RTC_TR_SU, wall_time.get_seconds_tens() << RTC_TR_SU_Pos);
|
||||
SET_TO(time, RTC_TR_SU, wall_time.get_seconds_ones() << RTC_TR_SU_Pos);
|
||||
RTC->TR = time;
|
||||
|
||||
CLR(RTC->ISR, RTC_ISR_INIT);
|
||||
@@ -269,6 +269,8 @@ void RtcDriver::increment_seconds()
|
||||
m_sys_timer.increment_seconds();
|
||||
}
|
||||
|
||||
static uint32_t wakeup_alarms = 0;
|
||||
|
||||
extern "C" void RTC_IRQHandler()
|
||||
{
|
||||
// Clear the wakeup and alarm interrupts in the EXTI
|
||||
@@ -280,6 +282,7 @@ extern "C" void RTC_IRQHandler()
|
||||
}
|
||||
|
||||
if (RTC->ISR & RTC_ISR_WUTF) {
|
||||
wakeup_alarms++;
|
||||
// Clear the interrupt in the RTC
|
||||
CLR(RTC->ISR, RTC_ISR_WUTF);
|
||||
// Disable the Wakeup timer (its periodic, but we use it as a
|
||||
|
||||
Reference in New Issue
Block a user