]> rtime.felk.cvut.cz Git - arc.git/blob - boards/stm32_stm3210c/examples/com_simple/config/PduR_PbCfg.c
Generated and built in-tree examples with stm3210c and tested
[arc.git] / boards / stm32_stm3210c / examples / com_simple / config / PduR_PbCfg.c
1 /*\r
2 * Configuration of module: PduR (PduR_PbCfg.c)\r
3 *\r
4 * Created by:              \r
5 * Copyright:               \r
6 *\r
7 * Configured for (MCU):    STM32_F107\r
8 *\r
9 * Module vendor:           ArcCore\r
10 * Generator version:       3.1.10\r
11 *\r
12 * Generated by Arctic Studio (http://arccore.com) \r
13 */\r
14 \r
15 \r
16 #include "PduR.h"\r
17 \r
18 \r
19 #if PDUR_CANIF_SUPPORT == STD_ON\r
20 #include "CanIf.h"\r
21 #endif\r
22 #if PDUR_CANTP_SUPPORT == STD_ON\r
23 #include "CanTp.h"\r
24 #endif\r
25 #if PDUR_LINIF_SUPPORT == STD_ON\r
26 #include "LinIf.h"\r
27 #endif\r
28 #if PDUR_COM_SUPPORT == STD_ON\r
29 #include "Com.h"\r
30 #endif\r
31 #if PDUR_DCM_SUPPORT == STD_ON\r
32 #include "Dcm.h"\r
33 #endif\r
34 #if PDUR_J1939TP_SUPPORT == STD_ON\r
35 #include "J1939Tp.h"\r
36 #endif\r
37 \r
38 \r
39 \r
40 PduRTpBufferInfo_type PduRTpBuffers[] = {\r
41         {\r
42                 .pduInfoPtr = NULL,\r
43                 .status = PDUR_BUFFER_FREE,\r
44                 .bufferSize = 0\r
45         }\r
46 };\r
47 \r
48 PduRTpBufferInfo_type *PduRTpRouteBufferPtrs[] = {\r
49    NULL\r
50 };\r
51 \r
52 \r
53                 \r
54 const PduRDestPdu_type PduRDestination_CanDB_Message_1_PduRDestination = {\r
55                 .DestModule = ARC_PDUR_COM,\r
56                 .DestPduId = COM_PDU_ID_CanDB_Message_1,\r
57                 .DataProvision = PDUR_DIRECT,\r
58                 .TxBufferRef = NULL\r
59 };              \r
60 const PduRDestPdu_type PduRDestination_CanDB_Message_2_PduRDestination = {\r
61                 .DestModule = ARC_PDUR_CANIF,\r
62                 .DestPduId = CANIF_PDU_ID_CanDB_Message_2,\r
63                 .DataProvision = PDUR_DIRECT,\r
64                 .TxBufferRef = NULL\r
65 }; \r
66 \r
67 const PduRDestPdu_type * const PduRDestinations_CanDB_Message_1[] = {           \r
68         &PduRDestination_CanDB_Message_1_PduRDestination,\r
69         NULL\r
70 };\r
71 const PduRDestPdu_type * const PduRDestinations_CanDB_Message_2[] = {           \r
72         &PduRDestination_CanDB_Message_2_PduRDestination,\r
73         NULL\r
74 };\r
75 \r
76 \r
77 const PduRRoutingPath_type PduRRoutingPath_CanDB_Message_1 = { \r
78         .SrcModule = ARC_PDUR_CANIF,\r
79         .SrcPduId = CANIF_PDU_ID_CanDB_Message_1,\r
80         .SduLength = 8,\r
81         .PduRDestPdus = PduRDestinations_CanDB_Message_1\r
82 };      \r
83 const PduRRoutingPath_type PduRRoutingPath_CanDB_Message_2 = { \r
84         .SrcModule = ARC_PDUR_COM,\r
85         .SrcPduId = COM_PDU_ID_CanDB_Message_2,\r
86         .SduLength = 8,\r
87         .PduRDestPdus = PduRDestinations_CanDB_Message_2\r
88 };      \r
89 \r
90 \r
91 const PduRRoutingPath_type * const PduRRoutingPaths[] = { \r
92         &PduRRoutingPath_CanDB_Message_1,\r
93         &PduRRoutingPath_CanDB_Message_2,\r
94         NULL\r
95 };\r
96 \r
97 \r
98 PduR_PBConfigType PduR_Config = {\r
99         .PduRConfigurationId = 0,\r
100         .RoutingPaths = PduRRoutingPaths,\r
101         .TpBuffers = PduRTpBuffers,\r
102         .TpRouteBuffers = PduRTpRouteBufferPtrs,\r
103         .NRoutingPaths = 2\r
104 };\r