-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathisr.h
59 lines (41 loc) · 1.37 KB
/
isr.h
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
58
59
/******************************************************************************
*
* @brief define interrupt service routines referenced by the vector table.
*
* Note: Only "vectors.c" should include this header file.
*
*******************************************************************************
******************************************************************************/
#ifndef __ISR_H
#define __ISR_H
/* Example */
/*
#undef VECTOR_036
#define VECTOR_036 RTC_Isr
// ISR(s) are defined in your project directory.
extern void RTC_Isr(void);
*/
/*!
* @brief define interrupt service routine for different vectors.
*
*
*
*
*/
#undef VECTOR_038
#define VECTOR_038 PIT_Ch0Isr_Override /*!< Vector 38 points to PIT channel 0 interrupt service routine */
#undef VECTOR_039
#define VECTOR_039 PIT_Ch1Isr /*!< Vector 39 points to PIT channel 1 interrupt service routine */
extern void PIT_Ch1Isr(void);
extern void PIT_Ch0Isr_Override(void);
#undef VECTOR_036
#define VECTOR_036 RTC_Isr /*!< Vector 36 points to RTC interrupt service routine */
extern void RTC_Isr(void);
#undef VECTOR_015
#define VECTOR_015 SysTick_Isr /*!< Vector 15 points to SysTick interrupt service routine */
extern void SysTick_Isr(void);
#undef VECTOR_028
#define VECTOR_028 UART0_Isr
extern void UART0_Isr(void);
#endif //__ISR_H
/* End of "isr.h" */