EPPL  0.1 alpha
 All Files Typedefs Groups Pages
eppl_target.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013, Radoslaw Koppel
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without
6  modification, are permitted provided that the following conditions are met:
7 
8  - Redistributions of source code must retain the above copyright
9  notice, this list of conditions and the following disclaimer.
10 
11  - Redistributions in binary form must reproduce the above copyright
12  notice, this list of conditions and the following disclaimer in the
13  documentation and/or other materials provided with the distribution.
14 
15  - Neither the name of the copyright holders nor the
16  names of its contributors may be used to endorse or promote products
17  derived from this software without specific prior written permission.
18 
19  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22  DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY
23  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
38 #ifndef EPPL_TARGET_INCLUDED
39 #define EPPL_TARGET_INCLUDED
40 
41 #define EPPL_TARGET_FILENAME EPPL_LC(eppl_, EPPL_TARGET).h
42 #define EPPL_TARGET_FILEPATH port/EPPL_TARGET
43 #define EPPL_TARGET_FILE EPPL_TEXT(EPPL_TARGET_FILEPATH/EPPL_TARGET_FILENAME)
44 
68  #define EPPL_TARGET_MAPC(n) EPPL_LC(EPPL_LC(EPPL_, EPPL_TARGET), n)
69 
77  #define EPPL_TARGET_MAPF(n) EPPL_LC(EPPL_LC(eppl_, EPPL_TARGET), n)
78 
89  #define EPPL_port_PORTSIZE EPPL_TARGET_MAPC(_PORTSIZE)
90 
92  #define EPPL_port_PORTCNT EPPL_TARGET_MAPC(_PORTCNT)
93 
96  #define EPPL_port_CONFSIZE EPPL_TARGET_MAPC(_CONFSIZE)
97 
102  #define eppl_port_InitOnePort EPPL_TARGET_MAPF(_InitOnePort)
103 
107  #define EPPL_port_ReinitIsSafe EPPL_TARGET_MAPC(_ReinitIsSafe)
108 
112  #define eppl_port_ReinitOnePort EPPL_TARGET_MAPF(_ReinitOnePort)
113 
118  #define EPPL_port_MapOutIsSafe EPPL_TARGET_MAPC(_MapOutIsSafe)
119 
124  #define EPPL_port_generateMapOutToOnePort EPPL_TARGET_MAPC(_generateMapOutToOnePort)
125 
130  #define EPPL_port_generateMapInFromOnePort EPPL_TARGET_MAPC(_generateMapInFromOnePort)
131 
136  #define eppl_port_LockableBlockBegin EPPL_TARGET_MAPF(_LockableBlockBegin)
137 
141  #define eppl_port_LockableBlockEnd EPPL_TARGET_MAPF(_LockableBlockEnd)
142 
145 #endif /* EPPL_TARGET_INCLUDED */