]> rtime.felk.cvut.cz Git - arc.git/blobdiff - 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
diff --git a/boards/ti_tms570ls/examples/tms570_hdk_can/config/Dio_Cfg.h b/boards/ti_tms570ls/examples/tms570_hdk_can/config/Dio_Cfg.h
new file mode 100644 (file)
index 0000000..660a59f
--- /dev/null
@@ -0,0 +1,59 @@
+/*\r
+* Configuration of module: Dio (Dio_Cfg.h)\r
+*\r
+* Created by:              \r
+* Copyright:               \r
+*\r
+* Configured for (MCU):    TMS570\r
+*\r
+* Module vendor:           ArcCore\r
+* Generator version:       2.0.0\r
+*\r
+* Generated by Arctic Studio (http://arccore.com) \r
+*/\r
+\r
+
+#if !(((DIO_SW_MAJOR_VERSION == 1) && (DIO_SW_MINOR_VERSION == 0)) )
+#error Dio: Configuration file expected BSW module version to be 1.0.*
+#endif
+
+\r
+#ifndef DIO_CFG_H_\r
+#define DIO_CFG_H_\r
+\r
+#include "Port.h"\r
+#include "Std_Types.h" /** @req DIO131 */\r
+\r
+// TODO - check if should change to STD_ON\r
+#define DIO_VERSION_INFO_API    STD_ON\r
+#define DIO_DEV_ERROR_DETECT    STD_OFF\r
+\r
+#define DIO_END_OF_LIST  (-1u)\r
+\r
+// Physical ports\r
+typedef enum\r
+{\r
+       DIO_PORT_A = 0,\r
+       DIO_PORT_B = 1,\r
+       DIO_PORT_N2HET1 = 2,\r
+} Dio_PortTypesType;\r
+\r
+\r
+// Channels    \r
+/** @req DIO015: Parameters of type Dio_ChannelType contain the numeric ID of a DIO channel */\r
+#define DIO_CHANNEL_NAME_LED_CHANNEL   PORT_PIN_LED1\r
+\r
+// Channel group\r
+\r
+// Ports\r
+#define DIO_PORT_NAME_LED_PORT                 (DIO_PORT_N2HET1)\r
+\r
+// Pointers for convenience.\r
+// Channels    \r
+extern const Dio_ChannelType DioChannelConfigData[];\r
+// Channel group\r
+extern const Dio_ChannelGroupType DioConfigData[];\r
+// Port\r
+extern const Dio_PortType DioPortConfigData[];\r
+\r
+#endif /*DIO_CFG_H_*/\r