changing circuitry to disable RTC, update initialization to match
[fw/openalt] / eints / eintsISR.c
1 //
2 //
3 //
4 #include "FreeRTOS.h"
5 #include "task.h"
6
7 #include "eintsISR.h"
8
9 //
10 //
11 //
12 void eintsISR_EINT0 (void) __attribute__ ((naked));
13 void eintsISR_EINT2 (void) __attribute__ ((naked));
14
15 //
16 //
17 //
18 void eintsISR_EINT0 (void)
19 {
20         portENTER_SWITCHING_ISR ();
21
22   SCB_EXTINT |= SCB_EXTINT_EINT0;
23
24   GPIO0_IOSET = GPIO_IO_P11;
25
26         VIC_VectAddr = (unsigned portLONG) 0;
27
28         portEXIT_SWITCHING_ISR (0);
29 }
30
31 void eintsISR_EINT2 (void)
32 {
33         portENTER_SWITCHING_ISR ();
34
35   SCB_EXTINT |= SCB_EXTINT_EINT1;
36
37   GPIO0_IOCLR = GPIO_IO_P11;
38
39         VIC_VectAddr = (unsigned portLONG) 0;
40
41         portEXIT_SWITCHING_ISR (0);
42 }