]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc563xsim/config/Mcu_Cfg.c
Added MCU support for MPC5633M
[arc.git] / boards / mpc563xsim / config / Mcu_Cfg.c
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
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>.
9  *
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
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18
19
20
21
22
23 #ifndef MCU_CFG_C_\r
24 #define MCU_CFG_C_\r
25 \r
26 #include "Mcu.h"\r
27 \r
28 Mcu_RamSectorSettingConfigType Mcu_RamSectorSettingConfigData[] = {\r
29   {\r
30   // This parameter shall represent the Data pre-setting to be initialized\r
31   .McuRamDefaultValue = 0,\r
32 \r
33   // This parameter shall represent the MCU RAM section base address\r
34   .McuRamSectionBaseAddress = 0,\r
35 \r
36   // This parameter shall represent the MCU RAM Section size\r
37   .McuRamSectionSize = 0xFF,\r
38   }\r
39 };\r
40 \r
41 Mcu_ClockSettingConfigType Mcu_ClockSettingConfigData[] =\r
42 {\r
43   {\r
44     .McuClockReferencePoint = 8000000UL,\r
45     .PllEprediv = 1,\r
46     .PllEmfd    = 104,\r
47     .PllErfd    = 5,\r
48   },\r
49   {\r
50     .McuClockReferencePoint = 40000000UL,\r
51     .PllEprediv = 3,\r
52     .PllEmfd    = 83,\r
53     .PllErfd    = 5,\r
54   }\r
55 };\r
56 \r
57 \r
58  const Mcu_ConfigType McuConfigData[] = {\r
59   {\r
60   //  Enables/Disables clock failure notification. In case this feature is not supported\r
61   //  by HW the setting should be disabled.\r
62   .McuClockSrcFailureNotification = 0,\r
63 \r
64   //  This parameter shall represent the number of Modes available for the\r
65   //  MCU. calculationFormula = Number of configured McuModeSettingConf\r
66   .McuNumberOfMcuModes = 1, /* NOT USED */\r
67 \r
68   //  This parameter shall represent the number of RAM sectors available for\r
69   //  the MCU. calculationFormula = Number of configured McuRamSectorSet-\r
70   //  tingConf\r
71   .McuRamSectors = 1,\r
72 \r
73   //  This parameter shall represent the number of clock setting available for\r
74   //  the MCU.\r
75   .McuClockSettings = MCU_NBR_OF_CLOCKS,\r
76 \r
77   //  This parameter relates to the MCU specific reset configuration. This ap-\r
78   //  plies to the function Mcu_PerformReset, which performs a microcontroller\r
79   //  reset using the hardware feature of the microcontroller.\r
80   .McuResetSetting = 0, /* NOT USED */\r
81 \r
82   //  This container contains the configuration (parameters) for the\r
83   //  Clock settings of the MCU. Please see MCU031 for more in-\r
84   //  formation on the MCU clock settings.\r
85   .McuClockSettingConfig = &Mcu_ClockSettingConfigData[0],\r
86 \r
87   //  This container contains the configuration (parameters) for the\r
88   //  Mode setting of the MCU. Please see MCU035 for more infor-\r
89   //  mation on the MCU mode settings.\r
90   .McuModeSettingConfig = 0,\r
91 \r
92   //  This container contains the configuration (parameters) for the\r
93   //  RAM Sector setting. Please see MCU030 for more information\r
94   //  on RAM sec-tor settings.\r
95   .McuRamSectorSettingConfig = &Mcu_RamSectorSettingConfigData[0],\r
96   },\r
97 };\r
98 \r
99 #endif /*MCU_CFG_C_*/\r