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