You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.5 KiB

3 years ago
  1. /**
  2. ******************************************************************************
  3. * @file iwdg.c
  4. * @brief This file provides code for the configuration
  5. * of the IWDG instances.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2022 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Includes ------------------------------------------------------------------*/
  20. #include "iwdg.h"
  21. /* USER CODE BEGIN 0 */
  22. /* USER CODE END 0 */
  23. IWDG_HandleTypeDef hiwdg;
  24. /* IWDG init function */
  25. void MX_IWDG_Init(void)
  26. {
  27. /* USER CODE BEGIN IWDG_Init 0 */
  28. /* USER CODE END IWDG_Init 0 */
  29. /* USER CODE BEGIN IWDG_Init 1 */
  30. /* USER CODE END IWDG_Init 1 */
  31. hiwdg.Instance = IWDG;
  32. hiwdg.Init.Prescaler = IWDG_PRESCALER_4;
  33. hiwdg.Init.Reload = 4095;
  34. if (HAL_IWDG_Init(&hiwdg) != HAL_OK)
  35. {
  36. Error_Handler();
  37. }
  38. /* USER CODE BEGIN IWDG_Init 2 */
  39. /* USER CODE END IWDG_Init 2 */
  40. }
  41. /* USER CODE BEGIN 1 */
  42. /* USER CODE END 1 */
  43. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/