2 * Configuration of module: Port (Port_Cfg.h)
\r
7 * Configured for (MCU): TMS570
\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
27 /** Build version info API */
\r
28 #define PORT_VERSION_INFO_API STD_OFF
\r
29 /** Enable Development Error Trace */
\r
30 #define PORT_DEV_ERROR_DETECT STD_OFF
\r
31 /** Build change pin direction API */
\r
32 #define PORT_SET_PIN_DIRECTION_API STD_OFF
\r
33 /** Allow Pin mode changes during runtime */
\r
34 #define PORT_SET_PIN_MODE_API STD_OFF
\r
36 #define PORT_NUMBER_OF_PINS 3
\r
38 #define PORT_FUNC (1 << 1)
\r
39 #define PORT_FUNC_NO (0 << 1)
\r
40 #define PORT_PULL_NONE (1 << 2)
\r
41 #define PORT_PULL_UP (1 << 3)
\r
42 #define PORT_PULL_DOWN (0 << 3)
\r
43 #define PORT_ODE_ENABLE (1 << 4)
\r
44 #define PORT_DIRECTION_CHANGEABLE (1 << 5)
\r
46 /** HW specific symbolic names of pins */
\r
50 PORT_PIN_DCAN1_TX = 0x0800,
\r
51 PORT_PIN_DCAN1_RX = 0x0801,
\r
52 PORT_PIN_GIOA3 = 0x0003,
\r
55 /** Port pad mappings */
\r
56 #define PORT_PAD_106 0x0800 // PORT_PIN_DCAN1_TX
\r
57 #define PORT_PAD_107 0x0801 // PORT_PIN_DCAN1_RX
\r
58 #define PORT_PAD_3 0x0003 // PORT_PIN_GIOA3
\r
63 } Port_ConfiguredPinType;
\r
65 /** Top level configuration container */
\r
69 const Port_ConfiguredPinType pins[PORT_NUMBER_OF_PINS];
\r
72 /** Instance of the top level configuration container */
\r
73 extern const Port_ConfigType PortConfigData;
\r
76 #endif /*PORT_CFG_H_*/
\r