]> rtime.felk.cvut.cz Git - arc.git/blob - include/PduR_LinIf.h
Separated Com and PduR includes for easier testing. CanIf_Init now inits controllers...
[arc.git] / include / PduR_LinIf.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18
19
20
21
22
23 #ifndef PDUR_LINIF_H_\r
24 #define PDUR_LINIF_H_\r
25 \r
26 #include "PduR.h"\r
27 \r
28 #if (PDUR_ZERO_COST_OPERATION == STD_OFF)
29
30         void PduR_LinIfRxIndication(PduIdType LinRxPduId,const uint8* LinSduPtr);
31         void PduR_LinIfTxConfirmation(PduIdType LinTxPduId);
32         void PduR_LinIfTriggerTransmit(PduIdType LinTxPduId,uint8* LinSduPtr);
33
34 #else // Zero cost operation active
35
36         #if (PDUR_LINIF_SUPPORT == STD_ON)
37
38                 #define PduR_LinIfRxIndication Com_RxIndication
39                 #define PduR_LinIfTxConfirmation Com_TxConfirmation
40                 #define PduR_LinIfTriggerTransmit Com_TriggerTransmit
41
42         #else
43
44                 #define PduR_LinIfRxIndication(...)
45                 #define PduR_LinIfTxConfirmation(...)
46                 #define PduR_LinIfTriggerTransmit(...)
47
48         #endif
49
50 #endif // Zero cost operation active
51
52 #endif /*PDUR_LINIF_H_*/\r