]> git.sur5r.net Git - freertos/blob - Demo/HCS12_GCC_banked/sys/param.h
Remove unused variable warning.
[freertos] / Demo / HCS12_GCC_banked / sys / param.h
1 /* param.h - Board specific parameters\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_PARAM_H\r
29 #define _SYS_PARAM_H\r
30 \r
31 /*! Attribute unused.\r
32     Use this attribute to indicate that a parameter, a variable or a\r
33     static function is not used.  The compiler will not warn about the\r
34     unused variable.  */\r
35 #define ATTRIBUTE_UNUSED __attribute__((unused))\r
36 \r
37 /*! Attribute page0.\r
38     Use this attribute to put a global or static variable in page0. */\r
39 #define PAGE0_ATTRIBUTE __attribute__((section(".page0")))\r
40 \r
41 #ifdef mc6811\r
42 //# include <asm-m68hc11/param.h>\r
43 #endif\r
44 \r
45 #ifdef mc68hcs12\r
46 # include <asm-m68hcs12/param.h>\r
47 #elif defined(mc6812)\r
48 //# include <asm-m68hc12/param.h>\r
49 #endif\r
50 \r
51 #include <arch/param.h>\r
52 \r
53 #define GNU_LINKER_WARNING(SYMBOL, MSG) \\r
54   asm (".section .gnu.warning." SYMBOL "\n\t.string \"" MSG "\"\n\t.previous");\r
55 \r
56 #endif\r