/[dtapublic]/to_be_filed/uculib01/autotest/stm8/cosmic/modsl0/group_a/stm8_interrupt_vector.c
ViewVC logotype

Contents of /to_be_filed/uculib01/autotest/stm8/cosmic/modsl0/group_a/stm8_interrupt_vector.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Sat Oct 8 07:22:17 2016 UTC (7 years, 5 months ago) by dashley
File MIME type: text/plain
File size: 3861 byte(s)
Initial commit.
1 //-------------------------------------------------------------------------------
2 //$Header: /home/dashley/cvsrep/uculib01/uculib01/autotest/stm8/cosmic/modsl0/group_a/stm8_interrupt_vector.c,v 1.2 2010/02/03 20:10:45 dashley Exp $
3 //-------------------------------------------------------------------------------
4 //Copyright (c)2010 David T. Ashley
5 //
6 //Permission is hereby granted, free of charge, to any person obtaining a copy
7 //of this software source code and associated documentation files (the
8 //"Software"), to deal in the Software without restriction, including without
9 //limitation the rights to use, copy, modify, merge, publish, distribute,
10 //sublicense, and/or sell copies of the Software, and to permit persons to whom
11 //the Software is furnished to do so, subject to the following conditions:
12 //
13 //The above copyright notice and this permission notice shall be included in
14 //all copies or substantial portions of the Software.
15 //
16 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 //THE SOFTWARE.
23 //-------------------------------------------------------------------------------
24
25 typedef void @far (*interrupt_handler_t)(void);
26
27 struct interrupt_vector {
28 unsigned char interrupt_instruction;
29 interrupt_handler_t interrupt_handler;
30 };
31
32 @far @interrupt void NonHandledInterrupt (void)
33 {
34 /* in order to detect unexpected events during development,
35 it is recommended to set a breakpoint on the following instruction
36 */
37 return;
38 }
39
40 extern void _stext(); /* startup routine */
41
42 struct interrupt_vector const _vectab[] = {
43 {0x82, (interrupt_handler_t)_stext}, /* reset */
44 {0x82, NonHandledInterrupt}, /* trap */
45 {0x82, NonHandledInterrupt}, /* irq0 */
46 {0x82, NonHandledInterrupt}, /* irq1 */
47 {0x82, NonHandledInterrupt}, /* irq2 */
48 {0x82, NonHandledInterrupt}, /* irq3 */
49 {0x82, NonHandledInterrupt}, /* irq4 */
50 {0x82, NonHandledInterrupt}, /* irq5 */
51 {0x82, NonHandledInterrupt}, /* irq6 */
52 {0x82, NonHandledInterrupt}, /* irq7 */
53 {0x82, NonHandledInterrupt}, /* irq8 */
54 {0x82, NonHandledInterrupt}, /* irq9 */
55 {0x82, NonHandledInterrupt}, /* irq10 */
56 {0x82, NonHandledInterrupt}, /* irq11 */
57 {0x82, NonHandledInterrupt}, /* irq12 */
58 {0x82, NonHandledInterrupt}, /* irq13 */
59 {0x82, NonHandledInterrupt}, /* irq14 */
60 {0x82, NonHandledInterrupt}, /* irq15 */
61 {0x82, NonHandledInterrupt}, /* irq16 */
62 {0x82, NonHandledInterrupt}, /* irq17 */
63 {0x82, NonHandledInterrupt}, /* irq18 */
64 {0x82, NonHandledInterrupt}, /* irq19 */
65 {0x82, NonHandledInterrupt}, /* irq20 */
66 {0x82, NonHandledInterrupt}, /* irq21 */
67 {0x82, NonHandledInterrupt}, /* irq22 */
68 {0x82, NonHandledInterrupt}, /* irq23 */
69 {0x82, NonHandledInterrupt}, /* irq24 */
70 {0x82, NonHandledInterrupt}, /* irq25 */
71 {0x82, NonHandledInterrupt}, /* irq26 */
72 {0x82, NonHandledInterrupt}, /* irq27 */
73 {0x82, NonHandledInterrupt}, /* irq28 */
74 {0x82, NonHandledInterrupt}, /* irq29 */
75 };
76
77 //-------------------------------------------------------------------------------
78 //$Log: stm8_interrupt_vector.c,v $
79 //Revision 1.2 2010/02/03 20:10:45 dashley
80 //Extra line removed.
81 //
82 //Revision 1.1 2010/02/03 20:09:43 dashley
83 //Initial checkin.
84 //-------------------------------------------------------------------------------
85 //End of $RCSfile: stm8_interrupt_vector.c,v $
86 //-------------------------------------------------------------------------------
87

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25