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
17 #ifndef SCHM_ECUM_H_
\r
18 #define SCHM_ECUM_H_
\r
23 #define SchM_Enter_EcuM(_area) CONCAT_(SchM_Enter_EcuM_,_area)
\r
24 #define SchM_Exit_EcuM(_area) CONCAT_(SchM_Exit_EcuM_,_area)
\r
30 /* Lock interrupts */
\r
31 #define EXCLUSIVE_AREA_0 0
\r
33 #define SchM_Enter_EcuM_0 DisableAllInterrupts
\r
34 #define SchM_Exit_EcuM_0 ResumeAllInterrupts
\r
36 #define SCHM_MAINFUNCTION_ECUM() SCHM_MAINFUNCTION(ECUM,EcuM_MainFunction())
\r
39 /* Skip "instance", req INTEGR058 */
\r
41 #define SchM_Enter_EcuM(uint8 exclusiveArea )
\r
42 #define SchM_Exit_EcuM(uint8 exclusiveArea )
\r
43 #define SchM_ActMainFunction_EcuM(uint8 exclusiveArea )
\r
44 #define SchM_CancelMainFunction_EcuM( uint8 exclusiveArea )
\r
47 #endif /* SCHM_ECUM_H_ */
\r