1 /* -------------------------------- Arctic Core ------------------------------
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
6 * This source code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by the
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * -------------------------------- Arctic Core ------------------------------*/
26 #include "Std_Types.h"
\r
28 #define PORT_VERSION_INFO_API STD_ON
\r
29 #define PORT_DEV_ERROR_DETECT STD_ON
\r
30 #define PORT_PIN_DIRECTION_CHANGES_ALLOWED STD_ON
\r
182 #define BIT0 (1<<15)
\r
183 #define BIT1 (1<<14)
\r
184 #define BIT2 (1<<13)
\r
185 #define BIT3 (1<<12)
\r
186 #define BIT4 (1<<11)
\r
187 #define BIT5 (1<<10)
\r
188 #define BIT6 (1<<9)
\r
189 #define BIT7 (1<<8)
\r
190 #define BIT8 (1<<7)
\r
191 #define BIT9 (1<<6)
\r
192 #define BIT10 (1<<5)
\r
193 #define BIT11 (1<<4)
\r
194 #define BIT12 (1<<3)
\r
195 #define BIT13 (1<<2)
\r
196 #define BIT14 (1<<1)
\r
197 #define BIT15 (1<<0)
\r
199 #define WPE_BIT BIT14
\r
200 #define WPS_BIT BIT15
\r
204 #define PULL_UP (WPE_BIT|WPS_BIT)
\r
205 #define PULL_DOWN (WPE_BIT)
\r
206 #define PULL_NONE 0
\r
207 #define SLEW_RATE_MIN 0
\r
208 #define SLEW_RATE_MED BIT13
\r
209 #define SLEW_RATE_MAX (BIT12|BIT13)
\r
210 #define HYS_ENABLE BIT11
\r
211 #define ODE_ENABLE BIT10
\r
212 #define IBE_ENABLE BIT7
\r
213 #define OBE_ENABLE BIT6
\r
215 #define PA_FUNC1 (BIT5)
\r
216 #define PA_FUNC2 (BIT4)
\r
217 #define PA_FUNC3 (BIT4|BIT5)
\r
219 #define NORMAL_INPUT (BIT15)
\r
221 // Should be this out of reset
\r
222 #define PCR_RESET (0)
\r
223 #define PCR_BOOTCFG (IBE_ENABLE|PULL_DOWN)
\r
225 #define EVB_TEST_CONFIG (&PortConfigData)
\r
230 const uint16_t *padConfig;
\r
232 const uint8_t *outConfig;
\r
234 // const uint8_t *inConfig;
\r
237 extern const Port_ConfigType PortConfigData;
\r
239 #endif /*PORT_CFG_H_*/
\r