Prusa MINI Firmware overview
|
Go to the documentation of this file.
37 #ifndef __STM32F4xx_HAL_IWDG_H
38 #define __STM32F4xx_HAL_IWDG_H
96 #define IWDG_PRESCALER_4 0x00000000U
97 #define IWDG_PRESCALER_8 IWDG_PR_PR_0
98 #define IWDG_PRESCALER_16 IWDG_PR_PR_1
99 #define IWDG_PRESCALER_32 (IWDG_PR_PR_1 | IWDG_PR_PR_0)
100 #define IWDG_PRESCALER_64 IWDG_PR_PR_2
101 #define IWDG_PRESCALER_128 (IWDG_PR_PR_2 | IWDG_PR_PR_0)
102 #define IWDG_PRESCALER_256 (IWDG_PR_PR_2 | IWDG_PR_PR_1)
121 #define __HAL_IWDG_START(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_ENABLE)
129 #define __HAL_IWDG_RELOAD_COUNTER(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_RELOAD)
170 #define IWDG_KEY_RELOAD 0x0000AAAAU
171 #define IWDG_KEY_ENABLE 0x0000CCCCU
172 #define IWDG_KEY_WRITE_ACCESS_ENABLE 0x00005555U
173 #define IWDG_KEY_WRITE_ACCESS_DISABLE 0x00000000U
189 #define IWDG_ENABLE_WRITE_ACCESS(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_ENABLE)
196 #define IWDG_DISABLE_WRITE_ACCESS(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_DISABLE)
203 #define IS_IWDG_PRESCALER(__PRESCALER__) (((__PRESCALER__) == IWDG_PRESCALER_4) || \
204 ((__PRESCALER__) == IWDG_PRESCALER_8) || \
205 ((__PRESCALER__) == IWDG_PRESCALER_16) || \
206 ((__PRESCALER__) == IWDG_PRESCALER_32) || \
207 ((__PRESCALER__) == IWDG_PRESCALER_64) || \
208 ((__PRESCALER__) == IWDG_PRESCALER_128)|| \
209 ((__PRESCALER__) == IWDG_PRESCALER_256))
216 #define IS_IWDG_RELOAD(__RELOAD__) ((__RELOAD__) <= IWDG_RLR_RL)
This file contains HAL common defines, enumeration, macros and structures definitions.
IWDG Handle Structure definition.
Definition: stm32f4xx_hal_iwdg.h:76
HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
uint32_t Reload
Definition: stm32f4xx_hal_iwdg.h:68
IWDG Init structure definition.
Definition: stm32f4xx_hal_iwdg.h:63
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:55
uint32_t Prescaler
Definition: stm32f4xx_hal_iwdg.h:65
HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
IWDG_TypeDef * Instance
Definition: stm32f4xx_hal_iwdg.h:78
IWDG_InitTypeDef Init
Definition: stm32f4xx_hal_iwdg.h:80
IWDG_HandleTypeDef hiwdg
Definition: watchdog.h:24