source: trunk/firmware/CubeMX/Src/iwdg.c@ 8

Last change on this file since 8 was 1, checked in by f.jahn, 3 years ago
File size: 1.4 KB
RevLine 
[1]1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file iwdg.c
5 * @brief This file provides code for the configuration
6 * of the IWDG instances.
7 ******************************************************************************
8 * @attention
9 *
10 * Copyright (c) 2022 STMicroelectronics.
11 * All rights reserved.
12 *
13 * This software is licensed under terms that can be found in the LICENSE file
14 * in the root directory of this software component.
15 * If no LICENSE file comes with this software, it is provided AS-IS.
16 *
17 ******************************************************************************
18 */
19/* USER CODE END Header */
20/* Includes ------------------------------------------------------------------*/
21#include "iwdg.h"
22
23/* USER CODE BEGIN 0 */
24
25/* USER CODE END 0 */
26
27IWDG_HandleTypeDef hiwdg;
28
29/* IWDG init function */
30void MX_IWDG_Init(void)
31{
32
33 /* USER CODE BEGIN IWDG_Init 0 */
34
35 /* USER CODE END IWDG_Init 0 */
36
37 /* USER CODE BEGIN IWDG_Init 1 */
38
39 /* USER CODE END IWDG_Init 1 */
40 hiwdg.Instance = IWDG;
41 hiwdg.Init.Prescaler = IWDG_PRESCALER_4;
42 hiwdg.Init.Window = 4095;
43 hiwdg.Init.Reload = 4095;
44 if (HAL_IWDG_Init(&hiwdg) != HAL_OK)
45 {
46 Error_Handler();
47 }
48 /* USER CODE BEGIN IWDG_Init 2 */
49
50 /* USER CODE END IWDG_Init 2 */
51
52}
53
54/* USER CODE BEGIN 1 */
55
56/* USER CODE END 1 */
Note: See TracBrowser for help on using the repository browser.