2 * Configuration of module: Port (Port_Cfg.h)
\r
4 * Created by: ArcCore
\r
7 * Configured for (MCU): MPC551x
\r
9 * Module vendor: ArcCore
\r
10 * Generator version: 2.0.1
\r
12 * Generated by Arctic Studio (http://arccore.com)
\r
16 #if !(((PORT_SW_MAJOR_VERSION == 1) && (PORT_SW_MINOR_VERSION == 0)) )
17 #error Port: Configuration file expected BSW module version to be 1.0.*
24 #include "Std_Types.h"
\r
26 #define PORT_VERSION_INFO_API STD_OFF
\r
27 #define PORT_DEV_ERROR_DETECT STD_OFF
\r
28 #define PORT_SET_PIN_MODE_API STD_OFF
\r
29 #define PORT_SET_PIN_DIRECTION_API STD_OFF
\r
31 #define PORT_BIT0 (1<<15)
\r
32 #define PORT_BIT1 (1<<14)
\r
33 #define PORT_BIT2 (1<<13)
\r
34 #define PORT_BIT3 (1<<12)
\r
35 #define PORT_BIT4 (1<<11)
\r
36 #define PORT_BIT5 (1<<10)
\r
37 #define PORT_BIT6 (1<<9)
\r
38 #define PORT_BIT7 (1<<8)
\r
39 #define PORT_BIT8 (1<<7)
\r
40 #define PORT_BIT9 (1<<6)
\r
41 #define PORT_BIT10 (1<<5)
\r
42 #define PORT_BIT11 (1<<4)
\r
43 #define PORT_BIT12 (1<<3)
\r
44 #define PORT_BIT13 (1<<2)
\r
45 #define PORT_BIT14 (1<<1)
\r
46 #define PORT_BIT15 (1<<0)
\r
48 #define PORT_WPE_BIT PORT_BIT14
\r
49 #define PORT_WPS_BIT PORT_BIT15
\r
50 #define PORT_SRC0 PORT_BIT12
\r
51 #define PORT_SRC1 PORT_BIT13
\r
53 #define PORT_PULL_UP (PORT_WPE_BIT|PORT_WPS_BIT)
\r
54 #define PORT_PULL_DOWN (PORT_WPE_BIT)
\r
55 #define PORT_PULL_NONE 0
\r
56 #define PORT_SLEW_RATE_MIN 0
\r
57 #define PORT_SLEW_RATE_MED PORT_BIT13
\r
58 #define PORT_SLEW_RATE_MAX (PORT_BIT12|PORT_BIT13)
\r
59 #define PORT_HYS_ENABLE PORT_BIT11
\r
60 #define PORT_ODE_ENABLE PORT_BIT10
\r
61 #define PORT_IBE_ENABLE PORT_BIT7
\r
62 #define PORT_OBE_ENABLE PORT_BIT6
\r
64 #define PORT_GPIO_APC PORT_BIT2
\r
65 #define PORT_FUNC0 (0)
\r
66 #define PORT_FUNC1 (PORT_BIT5)
\r
67 #define PORT_FUNC2 (PORT_BIT4)
\r
68 #define PORT_FUNC3 (PORT_BIT4|PORT_BIT5)
\r
69 #define PORT_FUNC4 (PORT_BIT3)
\r
71 #define PORT_PCR_RESET (0)
\r
72 #define PORT_GPDO_RESET (0)
\r
74 #define PORT_GPDO_HIGH (1)
\r
77 typedef uint16 Port_PinType;
\r
82 const uint16_t *padConfig;
\r
84 const uint8_t *outConfig;
\r
86 // const uint8_t *inConfig;
\r
89 extern const Port_ConfigType PortConfigData;
\r
91 #define PORT_PIN_NAME_CNTX_A 48
\r
92 #define PORT_PIN_NAME_CNRX_A 49
\r
94 #endif /* PORT_CFG_H_ */
\r