]> git.sur5r.net Git - freertos/blob - Demo/HCS12_GCC_banked/asm-m68hcs12/interrupts.h
New demo files for HCS12 GCC port.
[freertos] / Demo / HCS12_GCC_banked / asm-m68hcs12 / interrupts.h
1 /* Interrupt Vectors\r
2    Copyright (C) 2000 Free Software Foundation, Inc.\r
3    Written by Stephane Carrez (stcarrez@worldnet.fr)    \r
4    Modified; Jefferson Smith, Robotronics; for HC12/9S12\r
5 \r
6 This file is free software; you can redistribute it and/or modify it\r
7 under the terms of the GNU General Public License as published by the\r
8 Free Software Foundation; either version 2, or (at your option) any\r
9 later version.\r
10 \r
11 In addition to the permissions in the GNU General Public License, the\r
12 Free Software Foundation gives you unlimited permission to link the\r
13 compiled version of this file with other programs, and to distribute\r
14 those programs without any restriction coming from the use of this\r
15 file.  (The General Public License restrictions do apply in other\r
16 respects; for example, they cover modification of the file, and\r
17 distribution when not linked into another program.)\r
18 \r
19 This file is distributed in the hope that it will be useful, but\r
20 WITHOUT ANY WARRANTY; without even the implied warranty of\r
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
22 General Public License for more details.\r
23 \r
24 You should have received a copy of the GNU General Public License\r
25 along with this program; see the file COPYING.  If not, write to\r
26 the Free Software Foundation, 59 Temple Place - Suite 330,\r
27 Boston, MA 02111-1307, USA.  */\r
28 \r
29 #ifndef _M68HC12_INTERRUPTS_H\r
30 #define _M68HC12_INTERRUPTS_H\r
31 \r
32 /*! @defgroup interrupts Interrupts.\r
33 \r
34  */\r
35 /*@{*/\r
36 \r
37 /*! Interrupt handler prototype.  */\r
38 typedef void (* interrupt_t) (void);\r
39 \r
40 #ifdef mc68hcs12\r
41 #       include "interrupts-dp256.h"\r
42 #endif\r
43 \r
44 /*! Interrupt vector table.\r
45 \r
46     The interrupt vector table is in general located at `0xff80'\r
47     in memory.  It is at the same address as the interrupt\r
48     vectors structure (alias).  */\r
49 extern interrupt_t _vectors_addr[MAX_VECTORS];\r
50 \r
51 extern interrupt_vectors_t _vectors __asm__("_vectors_addr");\r
52 \r
53 /*@}*/\r
54 #endif  /* _M68HC12_INTERRUPTS_H */\r