]> rtime.felk.cvut.cz Git - arc.git/blob - boards/ti_tms570ls/examples/tms570_hdk_can/config/Dio_Cfg.h
Added example of CAN communication for the TMS570LS31x HDK
[arc.git] / boards / ti_tms570ls / examples / tms570_hdk_can / config / Dio_Cfg.h
1 /*\r
2 * Configuration of module: Dio (Dio_Cfg.h)\r
3 *\r
4 * Created by:              \r
5 * Copyright:               \r
6 *\r
7 * Configured for (MCU):    TMS570\r
8 *\r
9 * Module vendor:           ArcCore\r
10 * Generator version:       2.0.0\r
11 *\r
12 * Generated by Arctic Studio (http://arccore.com) \r
13 */\r
14 \r
15
16 #if !(((DIO_SW_MAJOR_VERSION == 1) && (DIO_SW_MINOR_VERSION == 0)) )
17 #error Dio: Configuration file expected BSW module version to be 1.0.*
18 #endif
19
20 \r
21 #ifndef DIO_CFG_H_\r
22 #define DIO_CFG_H_\r
23 \r
24 #include "Port.h"\r
25 #include "Std_Types.h" /** @req DIO131 */\r
26 \r
27 // TODO - check if should change to STD_ON\r
28 #define DIO_VERSION_INFO_API    STD_ON\r
29 #define DIO_DEV_ERROR_DETECT    STD_OFF\r
30 \r
31 #define DIO_END_OF_LIST  (-1u)\r
32 \r
33 // Physical ports\r
34 typedef enum\r
35 {\r
36         DIO_PORT_A = 0,\r
37         DIO_PORT_B = 1,\r
38         DIO_PORT_N2HET1 = 2,\r
39 } Dio_PortTypesType;\r
40 \r
41 \r
42 // Channels     \r
43 /** @req DIO015: Parameters of type Dio_ChannelType contain the numeric ID of a DIO channel */\r
44 #define DIO_CHANNEL_NAME_LED_CHANNEL    PORT_PIN_LED1\r
45 \r
46 // Channel group\r
47 \r
48 // Ports\r
49 #define DIO_PORT_NAME_LED_PORT          (DIO_PORT_N2HET1)\r
50 \r
51 // Pointers for convenience.\r
52 // Channels     \r
53 extern const Dio_ChannelType DioChannelConfigData[];\r
54 // Channel group\r
55 extern const Dio_ChannelGroupType DioConfigData[];\r
56 // Port\r
57 extern const Dio_PortType DioPortConfigData[];\r
58 \r
59 #endif /*DIO_CFG_H_*/\r