]> rtime.felk.cvut.cz Git - arc.git/blob - boards/ti_tms570ls/examples/rte_simple/config/Dio_Cfg.h
d9eef2731e28884c517de725a6d50f1d0cb04d37
[arc.git] / boards / ti_tms570ls / examples / rte_simple / 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 #include "Port.h"\r
24 \r
25 #define DIO_VERSION_INFO_API    STD_OFF\r
26 #define DIO_DEV_ERROR_DETECT    STD_OFF\r
27 \r
28 #define DIO_END_OF_LIST  -1\r
29 \r
30 // Physical ports\r
31 typedef enum\r
32 {\r
33   DIO_PORT_A = 0,\r
34   DIO_PORT_B = 1,\r
35 } Dio_PortTypesType;\r
36 \r
37 \r
38 // Channels     \r
39 #define DIO_CHANNEL_NAME_LED_CHANNEL    PORT_PAD_3\r
40 \r
41 // Channel group\r
42 \r
43 // Ports\r
44 #define DIO_PORT_NAME_LED_PORT          (DIO_PORT_A)\r
45 \r
46 \r
47 \r
48 \r
49 // Pointers for convenience.\r
50 // Channels     \r
51 extern const Dio_ChannelType DioChannelConfigData[];\r
52 // Channel group\r
53 extern const Dio_ChannelGroupType DioConfigData[];\r
54 // Port\r
55 extern const Dio_PortType DioPortConfigData[];\r
56 \r
57 #endif /*DIO_CFG_H_*/\r