]> rtime.felk.cvut.cz Git - arc.git/blob - boards/hcs12x_elmicro_tboard/config/Mcu_Cfg.c
f7b66b0a884b63dfac6b5b5764bac52b2768757f
[arc.git] / boards / hcs12x_elmicro_tboard / 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 #ifndef MCU_CFG_C_\r
17 #define MCU_CFG_C_\r
18 \r
19 #warning "This default file may only be used as an example!"\r
20 \r
21 #include <stdint.h>\r
22 #include "Mcu.h"\r
23 \r
24 Mcu_RamSectorSettingConfigType Mcu_RamSectorSettingConfigData[] = {\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 = 16000000,\r
41     .Pll1    = 1,\r
42     .Pll2    = 2,\r
43   }\r
44 };\r
45 \r
46 \r
47  const Mcu_ConfigType McuConfigData[] = {\r
48   {\r
49   //  Enables/Disables clock failure notification. In case this feature is not supported\r
50   //  by HW the setting should be disabled.\r
51   .McuClockSrcFailureNotification = 0,\r
52 \r
53   //  This parameter shall represent the number of RAM sectors available for\r
54   //  the MCU. calculationFormula = Number of configured McuRamSectorSet-\r
55   //  tingConf\r
56   .McuRamSectors = 1,\r
57 \r
58   .McuClockSettings = MCU_NBR_OF_CLOCKS,\r
59 \r
60   .McuClockSettingConfig = &Mcu_ClockSettingConfigData[0],\r
61 \r
62   .McuRamSectorSettingConfig = &Mcu_RamSectorSettingConfigData[0],\r
63   },\r
64 };\r
65 \r
66 #endif /*MCU_CFG_C_*/\r