\r
#include "PduR.h"\r
\r
- #ifdef PDUR_CANIF_SUPPORT
- \r
- #ifndef PDUR_ZERO_COST_OPERATION\r
+ #if PDUR_CANIF_SUPPORT == STD_ON\r
+ #if PDUR_ZERO_COST_OPERATION == STD_OFF\r
+
+ void PduR_CanIfRxIndication (PduIdType CanRxPduId, const uint8 *CanSudPtr );\r
+ void PduR_CanIfTxConfirmation(PduIdType CanTxPduId);\r
+
+ #else // Zero cost operation active\r
+
+ #if PDUR_SINGLE_IF == CAN_IF && defined(PDUR_COM_SUPPORT)
+
+ #include "Com_Com.h"
+
+ #define PduR_CanIfRxIndication Com_RxIndication\r
+ #define PduR_CanIfTxConfirmation Com_TxConfirmation
+
+ #else
+
+ #define PduR_CanIfRxIndication (void)
+ #define PduR_CanIfTxConfirmation (void)
+
+ #endif
+
+ #endif // Zero cost operation active
\r
-void PduR_CanIfRxIndication (PduIdType CanRxPduId, const uint8 *CanSudPtr );\r
-void PduR_CanIfTxConfirmation(PduIdType CanTxPduId);\r
-\r
-\r
-#else // Zero cost operation active\r
-\r
-#define PduR_CanIfRxIndication Com_RxIndication\r
-#define PduR_CanIfTxConfirmation Com_TxConfirmation\r
-\r
-#endif\r
-#endif\r
-\r
+#else
+
+ #define PduR_CanIfRxIndication (void)
+ #define PduR_CanIfTxConfirmation (void)
+
+#endif // CAN_IF not supported\r
+
#endif /* PDUR_CANIF_H_ */\r
#define PDUR_SW_MINOR_VERSION 0
#define PDUR_SW_PATCH_VERSION 0
+
++
+ // ERROR CODES
+ #define PDUR_E_CONFIG_PTR_INVALID 0x06
+ #define PDUR_E_INVALID_REQUEST 0x01
+ #define PDUR_E_PDU_ID_INVALID 0x02
+ #define PDUR_E_TP_TX_REQ_REJECTED 0x03
+ #define PDUR_E_DATA_PTR_INVALID 0x05
+ #define PDUR_E_PDU_INSTANCE_LOST 0x10
+
+ #define PDUR_INSTANCE_ID 0
+
+ #include "modules.h"
+ #include "debug.h"
+
#include "PduR_Cfg.h"
#include "PduR_Types.h"
#include "PduR_Com.h"
#include "PduR_CanIf.h"
#include "PduR_LinIf.h"
+#include "PduR_CanTp.h"
+#include "PduR_Dcm.h"
+
+
/* Contain the current state of the PDU router. The router is uninitialized
* until PduR_Init has been run.
*/