RTEMS 6.1-rc4
|
Header file of IWDG HAL module. More...
#include "stm32h7xx_hal_def.h"
Go to the source code of this file.
Data Structures | |
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 | IWDG_WINDOW_DISABLE IWDG_WINR_WIN |
#define | __HAL_IWDG_START(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_ENABLE) |
Enable the IWDG peripheral. | |
#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 and IWDG_WINR registers disabled). | |
#define | IWDG_KEY_RELOAD 0x0000AAAAu |
IWDG Key Register BitMask. | |
#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, IWDG_RLR and IWDG_WINR registers. | |
#define | IWDG_DISABLE_WRITE_ACCESS(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_DISABLE) |
Disable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers. | |
#define | IS_IWDG_PRESCALER(__PRESCALER__) |
Check IWDG prescaler value. | |
#define | IS_IWDG_RELOAD(__RELOAD__) ((__RELOAD__) <= IWDG_RLR_RL) |
Check IWDG reload value. | |
#define | IS_IWDG_WINDOW(__WINDOW__) ((__WINDOW__) <= IWDG_WINR_WIN) |
Check IWDG window value. | |
Functions | |
HAL_StatusTypeDef | HAL_IWDG_Init (IWDG_HandleTypeDef *hiwdg) |
HAL_StatusTypeDef | HAL_IWDG_Refresh (IWDG_HandleTypeDef *hiwdg) |
Header file of IWDG HAL module.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.