-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathint.cpp
25 lines (21 loc) · 1020 Bytes
/
int.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/****************************************************************************
** INCLUDE
****************************************************************************/
#include "global.h"
/****************************************************************************
** INTERRUPT SERVICE ROUTINE
*****************************************************************************
** In the AT4809 ISR flags have to be cleared manually
****************************************************************************/
/****************************************************************************
** RTC Periodic Interrupt
*****************************************************************************
** Periodic interrupt generated by the RTC from it's independent clock source
****************************************************************************/
ISR( RTC_PIT_vect )
{
//Set the System Tick
g_isr_flags.system_tick = true;
//Manually clear the interrupt flag
RTC.PITINTFLAGS = RTC_PI_bm;
}