1 /* -------------------------------- Arctic Core ------------------------------
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
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>.
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
14 * -------------------------------- Arctic Core ------------------------------*/
21 #if defined(CFG_ARM_CM3)
22 #include "stm32f10x.h"
23 #elif defined(CFG_ARM_CR4)
27 #include "Std_Types.h"
28 typedef uint32_t imask_t;
30 /* Call architecture specific code */
31 #define Irq_Disable() __disable_irq()
32 #define Irq_Enable() __enable_irq()
34 #define Irq_Save(_flags) _flags = _Irq_Save();
35 #define Irq_Restore(_flags) _Irq_Restore(_flags);
37 #define Irq_SuspendAll() Irq_Disable()
38 #define Irq_ResumeAll() Irq_Enable()
40 #define Irq_SuspendOs() Irq_Disable()
41 #define Irq_ResumeOs() Irq_Enable()
44 #define CallService(index,param)
46 #define ilog2(x) __builtin_ffs(x)