0
|
1 |
/*
|
|
2 |
This file is part of CanFestival, a library implementing CanOpen Stack.
|
|
3 |
|
|
4 |
Copyright (C): Edouard TISSERANT and Francis DUPIN
|
|
5 |
|
|
6 |
See COPYING file for copyrights details.
|
|
7 |
|
|
8 |
This library is free software; you can redistribute it and/or
|
|
9 |
modify it under the terms of the GNU Lesser General Public
|
|
10 |
License as published by the Free Software Foundation; either
|
|
11 |
version 2.1 of the License, or (at your option) any later version.
|
|
12 |
|
|
13 |
This library is distributed in the hope that it will be useful,
|
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16 |
Lesser General Public License for more details.
|
|
17 |
|
|
18 |
You should have received a copy of the GNU Lesser General Public
|
|
19 |
License along with this library; if not, write to the Free Software
|
|
20 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __INTERRUPT__
|
|
24 |
#define __INTERRUPT__
|
|
25 |
|
|
26 |
|
|
27 |
/**
|
|
28 |
Disable interrupts
|
|
29 |
*/
|
|
30 |
void lock (void);
|
|
31 |
|
|
32 |
/**
|
|
33 |
Enable interrupts
|
|
34 |
*/
|
|
35 |
void unlock (void);
|
|
36 |
|
|
37 |
/**
|
|
38 |
Timer overflow
|
|
39 |
*/
|
|
40 |
void __attribute__((interrupt)) timerOvflHdl (void);
|
|
41 |
|
|
42 |
/**
|
|
43 |
Message transmitted on MSCAN 0
|
|
44 |
*/
|
|
45 |
void __attribute__((interrupt)) can0HdlTra (void);
|
|
46 |
|
|
47 |
/**
|
|
48 |
Message received on MSCAN 0
|
|
49 |
*/
|
|
50 |
void __attribute__((interrupt)) can0HdlRcv (void);
|
|
51 |
|
|
52 |
/**
|
|
53 |
Message error on MSCAN 0
|
|
54 |
|
|
55 |
*/
|
|
56 |
void __attribute__((interrupt)) can0HdlWup (void);
|
|
57 |
|
|
58 |
/**
|
|
59 |
Message error on MSCAN 0
|
|
60 |
*/
|
|
61 |
void __attribute__((interrupt)) can0HdlErr (void);
|
|
62 |
|
|
63 |
/**
|
|
64 |
Message transmited on MSCAN 1
|
|
65 |
*/
|
|
66 |
void __attribute__((interrupt)) can1HdlTra (void);
|
|
67 |
|
|
68 |
/**
|
|
69 |
Message received on MSCAN 1
|
|
70 |
*/
|
|
71 |
void __attribute__((interrupt)) can1HdlRcv (void);
|
|
72 |
|
|
73 |
/**
|
|
74 |
Message error on MSCAN 1
|
|
75 |
*/
|
|
76 |
void __attribute__((interrupt)) can1HdlWup (void);
|
|
77 |
|
|
78 |
/**
|
|
79 |
Message error on MSCAN 1
|
|
80 |
*/
|
|
81 |
void __attribute__((interrupt)) can1HdlErr (void);
|
|
82 |
|
|
83 |
/**
|
|
84 |
Message transmited on MSCAN 2
|
|
85 |
*/
|
|
86 |
void __attribute__((interrupt)) can2HdlTra (void);
|
|
87 |
|
|
88 |
/**
|
|
89 |
Message received on MSCAN 2
|
|
90 |
*/
|
|
91 |
void __attribute__((interrupt)) can2HdlRcv (void);
|
|
92 |
|
|
93 |
/*
|
|
94 |
Message error on MSCAN 2
|
|
95 |
*/
|
|
96 |
void __attribute__((interrupt)) can2HdlWup (void);
|
|
97 |
|
|
98 |
/**
|
|
99 |
Message error on MSCAN 2
|
|
100 |
*/
|
|
101 |
void __attribute__((interrupt)) can2HdlErr (void);
|
|
102 |
|
|
103 |
/**
|
|
104 |
Message transmited on MSCAN 3
|
|
105 |
*/
|
|
106 |
void __attribute__((interrupt)) can3HdlTra (void);
|
|
107 |
|
|
108 |
/**
|
|
109 |
Message received on MSCAN 3
|
|
110 |
*/
|
|
111 |
void __attribute__((interrupt)) can3HdlRcv (void);
|
|
112 |
|
|
113 |
/**
|
|
114 |
Message error on MSCAN 3
|
|
115 |
*/
|
|
116 |
void __attribute__((interrupt)) can3HdlWup (void);
|
|
117 |
|
|
118 |
/**
|
|
119 |
Message error on MSCAN 3
|
|
120 |
*/
|
|
121 |
void __attribute__((interrupt)) can3HdlErr (void);
|
|
122 |
|
|
123 |
/**
|
|
124 |
Message error on MSCAN 4
|
|
125 |
*/
|
|
126 |
void __attribute__((interrupt)) can4HdlTra (void);
|
|
127 |
|
|
128 |
/**
|
|
129 |
Message received on MSCAN 4
|
|
130 |
*/
|
|
131 |
void __attribute__((interrupt)) can4HdlRcv (void);
|
|
132 |
|
|
133 |
/*
|
|
134 |
Message error on MSCAN 4
|
|
135 |
*/
|
|
136 |
void __attribute__((interrupt)) can4HdlWup (void);
|
|
137 |
|
|
138 |
/**
|
|
139 |
Message error on MSCAN 4
|
|
140 |
*/
|
|
141 |
void __attribute__((interrupt)) can4HdlErr (void);
|
|
142 |
|
|
143 |
|
|
144 |
#endif /* __INTERRUPT__ */
|