]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc5567qrtech/config/Mcu_Cfg.c
Initial commit.
[arc.git] / boards / mpc5567qrtech / 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_Cfg.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 = 16000000UL,\r
45     .PllEprediv = 2,\r
46     .PllEmfd    = 11,\r
47     .PllErfd    = 0,\r
48   },\r
49 };\r
50 \r
51 \r
52  const Mcu_ConfigType McuConfigData[] = {\r
53   {\r
54   //  Enables/Disables clock failure notification. In case this feature is not supported\r
55   //  by HW the setting should be disabled.\r
56   .McuClockSrcFailureNotification = 0,\r
57 \r
58   //  This parameter shall represent the number of Modes available for the\r
59   //  MCU. calculationFormula = Number of configured McuModeSettingConf\r
60   .McuNumberOfMcuModes = 1, /* NOT USED */\r
61 \r
62   //  This parameter shall represent the number of RAM sectors available for\r
63   //  the MCU. calculationFormula = Number of configured McuRamSectorSet-\r
64   //  tingConf\r
65   .McuRamSectors = 1,\r
66 \r
67   //  This parameter shall represent the number of clock setting available for\r
68   //  the MCU.\r
69   .McuClockSettings = MCU_NBR_OF_CLOCKS,\r
70 \r
71   // Default clock frequency used\r
72   .McuDefaultClockSettings = MCU_CLOCKTYPE_EXT_REF_80MHZ,\r
73 \r
74   //  This parameter relates to the MCU specific reset configuration. This ap-\r
75   //  plies to the function Mcu_PerformReset, which performs a microcontroller\r
76   //  reset using the hardware feature of the microcontroller.\r
77   .McuResetSetting = 0, /* NOT USED */\r
78 \r
79   //  This container contains the configuration (parameters) for the\r
80   //  Clock settings of the MCU. Please see MCU031 for more in-\r
81   //  formation on the MCU clock settings.\r
82   .McuClockSettingConfig = &Mcu_ClockSettingConfigData[0],\r
83 \r
84   //  This container contains the configuration (parameters) for the\r
85   //  Mode setting of the MCU. Please see MCU035 for more infor-\r
86   //  mation on the MCU mode settings.\r
87   .McuModeSettingConfig = 0,\r
88 \r
89   //  This container contains the configuration (parameters) for the\r
90   //  RAM Sector setting. Please see MCU030 for more information\r
91   //  on RAM sec-tor settings.\r
92   .McuRamSectorSettingConfig = &Mcu_RamSectorSettingConfigData[0],\r
93   },\r
94 };\r
95 \r
96 #endif /*MCU_CFG_C_*/\r