1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\r
6 * This source code is free software; you can redistribute it and/or modify it
\r
7 * under the terms of the GNU General Public License version 2 as published by the
\r
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
\r
10 * This program is distributed in the hope that it will be useful, but
\r
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
\r
14 * -------------------------------- Arctic Core ------------------------------*/
\r
25 #include "Fee_Cbk.h"
\r
26 #include "Rte.h" // ???
\r
27 #if defined(USE_DEM)
\r
30 //#include "SchM_NvM.h"
\r
36 #if ( FEE_DEV_ERROR_DETECT == STD_ON )
\r
38 #define VALIDATE(_exp,_api,_err ) \
\r
40 Det_ReportError(MODULE_ID_FEE, 0, _api, _err); \
\r
43 #define VALIDATE_RV(_exp,_api,_err,_rv ) \
\r
45 Det_ReportError(MODULE_ID_FEE, 0, _api, _err); \
\r
49 #define VALIDATE_NO_RV(_exp,_api,_err ) \
\r
51 Det_ReportError(MODULE_ID_FEE, 0, _api, _err); \
\r
54 #define DET_REPORTERROR(_module,_instance,_api,_err) Det_ReportError(_module,_instance,_api,_err)
\r
57 #define VALIDATE(_exp,_api,_err )
\r
58 #define VALIDATE_RV(_exp,_api,_err,_rv )
\r
59 #define VALIDATE_NO_RV(_exp,_api,_err )
\r
60 #define DET_REPORTERROR(_module,_instance,_api,_err)
\r
65 FEE_UNINITIALIZED = 0,
\r
69 static FeeStateType feeState = FEE_UNINITIALIZED;
\r
75 // Set status to initialized
\r
76 feeState = FEE_IDLE;
\r
80 void Fee_MainFunction(void)
\r