]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc5516it/config/Wdg_Lcfg.c
EcuM: More watchdog stuff
[arc.git] / boards / mpc5516it / config / Wdg_Lcfg.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 #include "Wdg.h"\r
17 \r
18 const Wdg_ModeConfigType WdgModeConfig =\r
19 {\r
20         .Wdg_DefaultMode = WDGIF_OFF_MODE,\r
21         .WdgSettingsFast =\r
22         {\r
23                 .ReloadValue = 0x200,\r
24                 .ActivationBit = 1,\r
25         },\r
26         .WdgSettingsSlow =\r
27         {\r
28                 .ReloadValue = 0x7D00,\r
29                 .ActivationBit = 1,\r
30         },\r
31         .WdgSettingsOff =\r
32         {\r
33                 .ReloadValue = 0x7D00,\r
34                 .ActivationBit = 0,\r
35         },\r
36 };\r
37 \r
38 const Wdg_GeneralType WdgGeneral =\r
39 {\r
40         .Wdg_Index = 1,\r
41         .Wdg_TriggerLocationPtr = Wdg_Trigger,\r
42         .Wdg_SetModeLocationPtr = Wdg_SetMode,\r
43 };\r
44 \r
45 \r
46 const Wdg_ConfigType WdgConfig =\r
47 {\r
48   .Wdg_General = &WdgGeneral,\r
49   .Wdg_ModeConfig = &WdgModeConfig,\r
50 };\r
51 \r
52 \r