]> rtime.felk.cvut.cz Git - arc.git/blobdiff - boards/ti_tms570ls/examples/tms570_hdk_can/config/PduR_PbCfg.h
Added example of CAN communication for the TMS570LS31x HDK
[arc.git] / boards / ti_tms570ls / examples / tms570_hdk_can / config / PduR_PbCfg.h
diff --git a/boards/ti_tms570ls/examples/tms570_hdk_can/config/PduR_PbCfg.h b/boards/ti_tms570ls/examples/tms570_hdk_can/config/PduR_PbCfg.h
new file mode 100644 (file)
index 0000000..d6b2d6d
--- /dev/null
@@ -0,0 +1,45 @@
+/*\r
+* Configuration of module: PduR (PduR_PbCfg.h)\r
+*\r
+* Created by:              ArcCore\r
+* Copyright:               \r
+*\r
+* Configured for (MCU):    TMS570\r
+*\r
+* Module vendor:           ArcCore\r
+* Generator version:       3.1.10\r
+*\r
+* Generated by Arctic Studio (http://arccore.com) \r
+*/\r
+\r
+
+#if !(((PDUR_SW_MAJOR_VERSION == 2) && (PDUR_SW_MINOR_VERSION == 0)) )
+#error PduR: Configuration file expected BSW module version to be 2.0.*
+#endif
+
+\r
+#if defined(USE_DCM)\r
+#include "Dcm.h"\r
+#endif\r
+#if defined(USE_COM)\r
+#include "Com.h"\r
+#endif\r
+#if defined(USE_CANIF)\r
+#include "CanIf.h"\r
+#endif\r
+#if defined(USE_CANTP)\r
+#include "CanTp.h"\r
+#endif\r
+\r
+extern PduR_PBConfigType PduR_Config;\r
+\r
+//  PduR Polite Defines.\r
+#define PDUR_PDU_ID_FreqInd            0\r
+#define PDUR_REVERSE_PDU_ID_FreqInd            0\r
+#define PDUR_PDU_ID_FreqReq            1\r
+#define PDUR_REVERSE_PDU_ID_FreqReq            1\r
+#define PDUR_PDU_ID_RX_PDU             2\r
+#define PDUR_REVERSE_PDU_ID_RX_PDU             2\r
+#define PDUR_PDU_ID_TX_PDU             3\r
+#define PDUR_REVERSE_PDU_ID_TX_PDU             3\r
+\r