]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc563xsim/config/Mcu_Cfg.c
Cleanup of some drivers. Re-generated examples for mpc551xsim
[arc.git] / boards / mpc563xsim / config / Mcu_Cfg.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 #warning "This default file may only be used as an example!"\r
24 \r
25 #ifndef MCU_CFG_C_\r
26 #define MCU_CFG_C_\r
27 \r
28 #include "Mcu.h"\r
29 \r
30 Mcu_RamSectorSettingConfigType Mcu_RamSectorSettingConfigData[] = {\r
31   {\r
32   // This parameter shall represent the Data pre-setting to be initialized\r
33   .McuRamDefaultValue = 0,\r
34 \r
35   // This parameter shall represent the MCU RAM section base address\r
36   .McuRamSectionBaseAddress = 0,\r
37 \r
38   // This parameter shall represent the MCU RAM Section size\r
39   .McuRamSectionSize = 0xFF,\r
40   }\r
41 };\r
42 \r
43 Mcu_ClockSettingConfigType Mcu_ClockSettingConfigData[] =\r
44 {\r
45   {\r
46     .McuClockReferencePointFrequency = 8000000UL,\r
47     .Pll1 = 1,\r
48     .Pll2    = 104,\r
49     .Pll3    = 5,\r
50   },\r
51   {\r
52     .McuClockReferencePointFrequency = 40000000UL,\r
53     .Pll1 = 3,\r
54     .Pll2    = 83,\r
55     .Pll3    = 5,\r
56   }\r
57 };\r
58 \r
59 \r
60  const Mcu_ConfigType McuConfigData[] = {\r
61   {\r
62   //  Enables/Disables clock failure notification. In case this feature is not supported\r
63   //  by HW the setting should be disabled.\r
64   .McuClockSrcFailureNotification = 0,\r
65 \r
66   //  This parameter shall represent the number of RAM sectors available for\r
67   //  the MCU. calculationFormula = Number of configured McuRamSectorSet-\r
68   //  tingConf\r
69   .McuRamSectors = 1,\r
70 \r
71   //  This parameter shall represent the number of clock setting available for\r
72   //  the MCU.\r
73   .McuClockSettings = MCU_NBR_OF_CLOCKS,\r
74 \r
75   //  This container contains the configuration (parameters) for the\r
76   //  Clock settings of the MCU. Please see MCU031 for more in-\r
77   //  formation on the MCU clock settings.\r
78   .McuClockSettingConfig = &Mcu_ClockSettingConfigData[0],\r
79 \r
80   //  This container contains the configuration (parameters) for the\r
81   //  RAM Sector setting. Please see MCU030 for more information\r
82   //  on RAM sec-tor settings.\r
83   .McuRamSectorSettingConfig = &Mcu_RamSectorSettingConfigData[0],\r
84   },\r
85 };\r
86 \r
87 #endif /*MCU_CFG_C_*/\r