2 BCU SDK bcu development enviroment
3 Copyright (C) 2005-2011 Martin Koegler <mkoegler@auto.tuwien.ac.at>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 In addition to the permissions in the GNU General Public License,
11 you may link the compiled version of this file into combinations
12 with other programs, and distribute those combinations without any
13 restriction coming from the use of this file. (The General Public
14 License restrictions do apply in other respects; for example, they
15 cover modification of the file, and distribution when not linked into
16 a combine executable.)
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
33 #define EEPROM_ATTRIB __attribute__ ((eeprom))
34 #define EEPROM_PTR_ATTRIB __attribute__ ((eepromt))
36 #define LORAM_ATTRIB __attribute__ ((loram))
37 #define LORAM_PTR_ATTRIB __attribute__ ((loramt))
39 #define EEPROM_SECTION __attribute__ ((section (".eeprom")))
40 #define LOW_CONST_SECTION __attribute__ ((section (".loconst")))
41 #define RAM_SECTION __attribute__ ((section (".ram")))
43 #define NOSAVE(PROTO) PROTO __attribute__ ((nosave)); PROTO
45 typedef signed int sint1
__attribute__ ((mode (QI
)));
46 typedef signed int sint2
__attribute__ ((mode (HI
)));
47 typedef signed int sint3
__attribute__ ((mode (AI
)));
48 typedef signed int sint4
__attribute__ ((mode (SI
)));
49 typedef signed int sint5
__attribute__ ((mode (FI
)));
50 typedef signed int sint6
__attribute__ ((mode (CI
)));
51 typedef signed int sint7
__attribute__ ((mode (EI
)));
52 typedef signed int sint8
__attribute__ ((mode (DI
)));
54 typedef unsigned int uint1
__attribute__ ((mode (QI
)));
55 typedef unsigned int uint2
__attribute__ ((mode (HI
)));
56 typedef unsigned int uint3
__attribute__ ((mode (AI
)));
57 typedef unsigned int uint4
__attribute__ ((mode (SI
)));
58 typedef unsigned int uint5
__attribute__ ((mode (FI
)));
59 typedef unsigned int uint6
__attribute__ ((mode (CI
)));
60 typedef unsigned int uint7
__attribute__ ((mode (EI
)));
61 typedef unsigned int uint8
__attribute__ ((mode (DI
)));
64 typedef uchar
* uchar_loptr LORAM_PTR_ATTRIB
;