2016-09-04 11:35:41 +02:00
|
|
|
#include <internals/rtc.h>
|
2017-04-13 21:59:13 +02:00
|
|
|
#include <modules/rtc.h>
|
2016-07-25 09:04:22 +02:00
|
|
|
#include <rtc.h>
|
2016-07-06 11:28:51 +02:00
|
|
|
#include <mpu.h>
|
|
|
|
|
2016-07-25 09:04:22 +02:00
|
|
|
/*
|
2017-03-01 11:07:28 +01:00
|
|
|
rtc_periodic_interrupt()
|
2016-07-25 09:04:22 +02:00
|
|
|
Handles an RTC interrupt by calling the callback.
|
|
|
|
*/
|
2017-03-01 11:07:28 +01:00
|
|
|
void rtc_periodic_interrupt(void)
|
2016-07-25 09:04:22 +02:00
|
|
|
{
|
2016-09-04 11:35:41 +02:00
|
|
|
rtc_cb_interrupt();
|
2016-07-25 09:04:22 +02:00
|
|
|
|
2017-04-13 21:59:13 +02:00
|
|
|
RTC.RCR2->PEF = 0;
|
2016-07-25 09:04:22 +02:00
|
|
|
}
|