Prusa MINI Firmware overview
stm32f4xx_hal_iwdg.h File Reference

Header file of IWDG HAL module. More...

Go to the source code of this file.

Classes

struct  IWDG_InitTypeDef
 IWDG Init structure definition. More...
 
struct  IWDG_HandleTypeDef
 IWDG Handle Structure definition. More...
 

Macros

#define IWDG_PRESCALER_4   0x00000000U
 
#define IWDG_PRESCALER_8   IWDG_PR_PR_0
 
#define IWDG_PRESCALER_16   IWDG_PR_PR_1
 
#define IWDG_PRESCALER_32   (IWDG_PR_PR_1 | IWDG_PR_PR_0)
 
#define IWDG_PRESCALER_64   IWDG_PR_PR_2
 
#define IWDG_PRESCALER_128   (IWDG_PR_PR_2 | IWDG_PR_PR_0)
 
#define IWDG_PRESCALER_256   (IWDG_PR_PR_2 | IWDG_PR_PR_1)
 
#define __HAL_IWDG_START(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_ENABLE)
 Enable the IWDG peripheral. More...
 
#define __HAL_IWDG_RELOAD_COUNTER(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_RELOAD)
 Reload IWDG counter with value defined in the reload register (write access to IWDG_PR & IWDG_RLR registers disabled). More...
 
#define IWDG_KEY_RELOAD   0x0000AAAAU
 IWDG Key Register BitMask. More...
 
#define IWDG_KEY_ENABLE   0x0000CCCCU
 
#define IWDG_KEY_WRITE_ACCESS_ENABLE   0x00005555U
 
#define IWDG_KEY_WRITE_ACCESS_DISABLE   0x00000000U
 
#define IWDG_ENABLE_WRITE_ACCESS(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_ENABLE)
 Enable write access to IWDG_PR and IWDG_RLR registers. More...
 
#define IWDG_DISABLE_WRITE_ACCESS(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_DISABLE)
 Disable write access to IWDG_PR and IWDG_RLR registers. More...
 
#define IS_IWDG_PRESCALER(__PRESCALER__)
 Check IWDG prescaler value. More...
 
#define IS_IWDG_RELOAD(__RELOAD__)   ((__RELOAD__) <= IWDG_RLR_RL)
 Check IWDG reload value. More...
 

Functions

HAL_StatusTypeDef HAL_IWDG_Init (IWDG_HandleTypeDef *hiwdg)
 
HAL_StatusTypeDef HAL_IWDG_Refresh (IWDG_HandleTypeDef *hiwdg)
 

Detailed Description

Header file of IWDG HAL module.

Author
MCD Application Team
Attention

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.