]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/HCS12_GCC_banked/sys/interrupts.h
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / HCS12_GCC_banked / sys / interrupts.h
1 /* Interrupt Vectors\r
2    Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.\r
3    Written by Stephane Carrez (stcarrez@nerim.fr)       \r
4 \r
5 This file is free software; you can redistribute it and/or modify it\r
6 under the terms of the GNU General Public License as published by the\r
7 Free Software Foundation; either version 2, or (at your option) any\r
8 later version.\r
9 \r
10 In addition to the permissions in the GNU General Public License, the\r
11 Free Software Foundation gives you unlimited permission to link the\r
12 compiled version of this file with other programs, and to distribute\r
13 those programs without any restriction coming from the use of this\r
14 file.  (The General Public License restrictions do apply in other\r
15 respects; for example, they cover modification of the file, and\r
16 distribution when not linked into another program.)\r
17 \r
18 This file is distributed in the hope that it will be useful, but\r
19 WITHOUT ANY WARRANTY; without even the implied warranty of\r
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
21 General Public License for more details.\r
22 \r
23 You should have received a copy of the GNU General Public License\r
24 along with this program; see the file COPYING.  If not, write to\r
25 the Free Software Foundation, 59 Temple Place - Suite 330,\r
26 Boston, MA 02111-1307, USA.  */\r
27 \r
28 #ifndef _SYS_INTERRUPTS_H\r
29 #define _SYS_INTERRUPTS_H\r
30 \r
31 #include <sys/param.h>\r
32 \r
33 #ifdef mc6811\r
34 //# include <asm-m68hc11/interrupts.h>\r
35 #endif\r
36 \r
37 #ifdef mc68hcs12\r
38 # include <asm-m68hcs12/interrupts.h>\r
39 #elif defined(mc6812)\r
40 //# include <asm-m68hc12/interrupts.h>\r
41 #endif\r
42 \r
43 /*! Install an interrupt handler.\r
44 \r
45     Install the interrupt handler for an exception.  The handler\r
46     is installed for \b bootstrap mode and also for \b normal operating\r
47     mode.\r
48     \r
49     @param id the interrupt number to be installed\r
50     @param handler the interrupt handler entry point\r
51 */\r
52 extern void\r
53 set_interrupt_handler (interrupt_vector_id id, interrupt_t handler);\r
54 \r
55 /*! Default and fatal interrupt handler.\r
56 \r
57     This function is an interrupt handler intended to be used to\r
58     handle all interrupt not used by a program.  Since it is an\r
59     error to have an interrupt when it is not handled, the default\r
60     behavior is to print a message and stop.  */\r
61 extern void __attribute__((interrupt, noreturn))\r
62 fatal_interrupt (void);\r
63 \r
64 #include <arch/interrupts.h>\r
65 \r
66 /*! Entry point of any program.\r
67 \r
68     This function should never be called by itself.  It represents the\r
69     entry point of any program.  It is intended to be used in an\r
70     interrupt table to specify the function to jump to after reset.  */\r
71 extern void _start (void);\r
72 \r
73 #endif\r