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