]> rtime.felk.cvut.cz Git - arc.git/blob - arch/generic/linux/drivers/Mcu.c
#ifdef:ed all Det includes
[arc.git] / arch / generic / linux / drivers / Mcu.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 #include <assert.h>\r
18 #include <string.h>\r
19 #include "Std_Types.h"\r
20 #include "Mcu.h"\r
21 #if defined(USE_DET)\r
22 #include "Det.h"\r
23 #endif\r
24 #if defined(USE_DEM)\r
25 #include "Dem.h"\r
26 #endif\r
27 #include "Cpu.h"\r
28 #include "Ramlog.h"\r
29 #include "Os.h"\r
30 #include "isr.h"\r
31 \r
32 //#define USE_LDEBUG_PRINTF 1\r
33 #include "debug.h"\r
34 \r
35 \r
36 void Mcu_Init(const Mcu_ConfigType *configPtr)\r
37 {\r
38 \r
39 }\r
40 \r
41 void Mcu_SetMode( Mcu_ModeType McuMode ) {\r
42         (void)McuMode;\r
43 }\r
44 \r
45 /**\r
46  * Get the system clock in Hz. It calculates the clock from the\r
47  * different register settings in HW.\r
48  */\r
49 uint32_t McuE_GetSystemClock(void)\r
50 {\r
51   return 10;\r
52 }\r
53 Std_ReturnType Mcu_InitClock( const Mcu_ClockType ClockSetting ) {\r
54   return E_OK;\r
55 }\r
56 \r
57 void Mcu_PerformReset( void ) {\r
58 \r
59 }\r
60 \r
61 Mcu_PllStatusType Mcu_GetPllStatus( void ) {\r
62 \r
63 }\r