]> rtime.felk.cvut.cz Git - arc.git/blob - memory/Fee/Fee.c
Start of Fee module
[arc.git] / memory / Fee / Fee.c
1 /* -------------------------------- Arctic Core ------------------------------\r
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
3  *\r
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
5  *\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
9  *\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
13  * for more details.\r
14  * -------------------------------- Arctic Core ------------------------------*/\r
15 \r
16 \r
17 \r
18 \r
19 \r
20 \r
21 \r
22 \r
23 \r
24 #include "Fee.h"\r
25 #include "Fee_Cbk.h"\r
26 #include "Rte.h" // ???\r
27 #if defined(USE_DEM)\r
28 #include "Dem.h"\r
29 #endif\r
30 //#include "SchM_NvM.h"\r
31 #include "MemMap.h"\r
32 \r
33 /*\r
34  * Local definitions
35  */\r
36 #if  ( FEE_DEV_ERROR_DETECT == STD_ON )\r
37 #include "Det.h"\r
38 #define VALIDATE(_exp,_api,_err ) \\r
39         if( !(_exp) ) { \\r
40           Det_ReportError(MODULE_ID_FEE, 0, _api, _err); \\r
41         }\r
42 \r
43 #define VALIDATE_RV(_exp,_api,_err,_rv ) \\r
44         if( !(_exp) ) { \\r
45           Det_ReportError(MODULE_ID_FEE, 0, _api, _err); \\r
46           return _rv; \\r
47         }\r
48 \r
49 #define VALIDATE_NO_RV(_exp,_api,_err ) \\r
50   if( !(_exp) ) { \\r
51           Det_ReportError(MODULE_ID_FEE, 0, _api, _err); \\r
52           return; \\r
53         }\r
54 #define DET_REPORTERROR(_module,_instance,_api,_err) Det_ReportError(_module,_instance,_api,_err)\r
55 \r
56 #else\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
61 #endif\r
62 \r
63 // State variable\r
64 typedef enum {\r
65   FEE_UNINITIALIZED = 0,\r
66   FEE_IDLE,\r
67 } FeeStateType;\r
68 \r
69 static FeeStateType feeState = FEE_UNINITIALIZED;\r
70 \r
71 \r
72 void Fee_Init(void)\r
73 {\r
74 \r
75         // Set status to initialized\r
76         feeState = FEE_IDLE;\r
77 }\r
78 \r
79 \r
80 void Fee_MainFunction(void)\r
81 {\r
82 }\r
83 \r