]> rtime.felk.cvut.cz Git - arc.git/blob - include/MemMap.h
a660834dcf7d8a1f4d73e9d62bcb5767780ac08c
[arc.git] / include / MemMap.h
1 /* -------------------------------- Arctic Core ------------------------------\r
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
3  *\r
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
5  *\r
6  * This source code is free software; you can redistribute it and/or modify it\r
7  * under the terms of the GNU General Public License version 2 as published by the\r
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
9  *\r
10  * This program is distributed in the hope that it will be useful, but\r
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
13  * for more details.\r
14  * -------------------------------- Arctic Core ------------------------------*/\r
15 \r
16 /* REFERENCE\r
17  *   MemoryMapping.pdf\r
18  *\r
19  * DESCRIPTION\r
20  *\r
21  *\r
22  *
23  */\r
24 \r
25 \r
26 \r
27 #if defined(__GNUC__)\r
28 \r
29    #define SECTION_RAMLOG               __attribute__ ((section (".ramlog")))\r
30 \r
31 #elif defined(__CWCC__)\r
32 \r
33    #pragma section RW ".ramlog" ".ramlog"\r
34 \r
35    #define SECTION_RAMLOG               __declspec(section ".ramlog")\r
36 \r
37 #endif\r
38 \r