-
Notifications
You must be signed in to change notification settings - Fork 1
/
interrupt.c
57 lines (49 loc) · 1.59 KB
/
interrupt.c
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/******************************************************************************
* PIC USB
* interrupt.c
******************************************************************************/
/** I N C L U D E S **********************************************************/
#include <p18cxxx.h>
#include "system/typedefs.h"
#include "system/interrupt/interrupt.h"
/** V A R I A B L E S ********************************************************/
/** I N T E R R U P T V E C T O R S *****************************************/
#pragma code high_vector=0x08
void interrupt_at_high_vector(void)
{
_asm goto high_isr _endasm
}
#pragma code
#pragma code low_vector=0x18
void interrupt_at_low_vector(void)
{
_asm goto low_isr _endasm
}
#pragma code
/** D E C L A R A T I O N S **************************************************/
/******************************************************************************
* Function: void high_isr(void)
* PreCondition: None
* Input:
* Output:
* Side Effects:
* Overview:
*****************************************************************************/
#pragma interrupt high_isr
void high_isr(void)
{
}
/******************************************************************************
* Function: void low_isr(void)
* PreCondition: None
* Input:
* Output:
* Side Effects:
* Overview:
*****************************************************************************/
#pragma interruptlow low_isr
void low_isr(void)
{
}
#pragma code
/** EOF interrupt.c **********************************************************/