]> rtime.felk.cvut.cz Git - arc.git/blobdiff - examples/wdg_node/config/stm32_mcbstm32/Wdg_Lcfg.c
Removed a lot of examples. Added some under boards.
[arc.git] / examples / wdg_node / config / stm32_mcbstm32 / Wdg_Lcfg.c
diff --git a/examples/wdg_node/config/stm32_mcbstm32/Wdg_Lcfg.c b/examples/wdg_node/config/stm32_mcbstm32/Wdg_Lcfg.c
deleted file mode 100644 (file)
index cfacee9..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/* -------------------------------- Arctic Core ------------------------------\r
- * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
- *\r
- * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
- *\r
- * This source code is free software; you can redistribute it and/or modify it\r
- * under the terms of the GNU General Public License version 2 as published by the\r
- * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
- *\r
- * This program is distributed in the hope that it will be useful, but\r
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
- * for more details.\r
- * -------------------------------- Arctic Core ------------------------------*/\r
-\r
-#include "Wdg.h"\r
-\r
-const Wdg_IWDG_ModeConfigType WdgIWDGModeConfig =\r
-{\r
-       .Wdg_DefaultMode = WDGIF_OFF_MODE,\r
-       .WdgSettingsFast =\r
-       {\r
-                       .TimerBase = IWDG_CK_Counter_Clock_8,\r
-                       .ReloadValue = 0x7FF,\r
-                       .ActivationBit = 1,\r
-       },\r
-       .WdgSettingsSlow =\r
-       {\r
-                       .TimerBase = IWDG_CK_Counter_Clock_256,\r
-                       .ReloadValue = 0xFFF,\r
-                       .ActivationBit = 1,\r
-       },\r
-       .WdgSettingsOff =\r
-       {\r
-                       .TimerBase = IWDG_CK_Counter_Clock_4,\r
-                       .ReloadValue = 0x7F,\r
-                       .ActivationBit = 0,\r
-       },\r
-};\r
-\r
-const Wdg_GeneralType WdgIWDGGeneral =\r
-{\r
-       .Wdg_Index = 1,\r
-       .Wdg_TriggerLocationPtr = Wdg_IWDG_Trigger,\r
-       .Wdg_SetModeLocationPtr = Wdg_IWDG_SetMode,\r
-};\r
-\r
-\r
-const Wdg_IWDG_ConfigType WdgIWDGConfig =\r
-{\r
-  .Wdg_General = &WdgIWDGGeneral,\r
-  .Wdg_IWDGModeConfig = &WdgIWDGModeConfig,\r
-};\r
-\r
-\r
-/* The windowed watchdog is clocked from PCLK1. Max allowed frequency\r
- * of this is 36Mhz.\r
- *\r
- * Max Twwdg = T_PCLK1 * 4096 * 2^TimerBase * (CounterPreset & 0x3F) + 1)=\r
- *\r
- * = 58.25 ms\r
- *\r
- *\r
- *\r
- * Min Twwdg = T_PCLK1 * 4096 * 2^TimerBase * (CounterPreset & 0x3F) + 1)=\r
- *\r
- * = 7.28 ms\r
- * */\r
-\r
-/* TODO: Add implementation for Independent WD as well. This will make it\r
- * possible to test a multiple WD design within the STM32.  */\r
-const Wdg_WWDG_ModeConfigType WdgWWDGModeConfig =\r
-{\r
-       .Wdg_DefaultMode = WDGIF_OFF_MODE,\r
-       .WdgSettingsFast =\r
-       {\r
-                       .TimerBase = WDG_CK_Counter_Clock_4,\r
-                       .WindowValue = 0x7F,\r
-                       .CounterPreset = 0x7F,\r
-                       .ActivationBit = 1,\r
-       },\r
-       .WdgSettingsSlow =\r
-       {\r
-                       .TimerBase = WDG_CK_Counter_Clock_8,\r
-                       .WindowValue = 0x7F,\r
-                       .CounterPreset = 0x7F,\r
-                       .ActivationBit = 1,\r
-       },\r
-       .WdgSettingsOff =\r
-       {\r
-                       .TimerBase = WDG_CK_Counter_Clock_8,\r
-                       .WindowValue = 0x7F,\r
-                       .CounterPreset = 0x7F,\r
-                       .ActivationBit = 0,\r
-       },\r
-};\r
-const Wdg_GeneralType WdgWWDGGeneral =\r
-{\r
-       .Wdg_Index = 0,\r
-       .Wdg_TriggerLocationPtr = Wdg_WWDG_Trigger,\r
-       .Wdg_SetModeLocationPtr = Wdg_WWDG_SetMode,\r
-};\r
-\r
-const Wdg_WWDG_ConfigType WdgWWDGConfig =\r
-{\r
-  .Wdg_General = &WdgWWDGGeneral,\r
-  .Wdg_WWDGModeConfig = &WdgWWDGModeConfig,\r
-};\r
-\r
-const Wdg_ConfigType WdgConfig =\r
-{\r
-       &WdgIWDGConfig,\r
-       &WdgWWDGConfig,\r
-};\r