Prusa MINI Firmware overview
IWDG Private Macros
Collaboration diagram for IWDG Private Macros:

Macros

#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...
 

Detailed Description

Macro Definition Documentation

◆ IWDG_ENABLE_WRITE_ACCESS

#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.

Parameters
<strong>HANDLE</strong>IWDG handle
Return values
None

◆ IWDG_DISABLE_WRITE_ACCESS

#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.

Parameters
<strong>HANDLE</strong>IWDG handle
Return values
None

◆ IS_IWDG_PRESCALER

#define IS_IWDG_PRESCALER (   __PRESCALER__)
Value:
(((__PRESCALER__) == IWDG_PRESCALER_4) || \
((__PRESCALER__) == IWDG_PRESCALER_8) || \
((__PRESCALER__) == IWDG_PRESCALER_16) || \
((__PRESCALER__) == IWDG_PRESCALER_32) || \
((__PRESCALER__) == IWDG_PRESCALER_64) || \
((__PRESCALER__) == IWDG_PRESCALER_128)|| \
((__PRESCALER__) == IWDG_PRESCALER_256))

Check IWDG prescaler value.

Parameters
<strong>PRESCALER</strong>IWDG prescaler value
Return values
None

◆ IS_IWDG_RELOAD

#define IS_IWDG_RELOAD (   __RELOAD__)    ((__RELOAD__) <= IWDG_RLR_RL)

Check IWDG reload value.

Parameters
<strong>RELOAD</strong>IWDG reload value
Return values
None
IWDG_PRESCALER_4
#define IWDG_PRESCALER_4
Definition: stm32f4xx_hal_iwdg.h:96
IWDG_PRESCALER_16
#define IWDG_PRESCALER_16
Definition: stm32f4xx_hal_iwdg.h:98
IWDG_PRESCALER_64
#define IWDG_PRESCALER_64
Definition: stm32f4xx_hal_iwdg.h:100
IWDG_PRESCALER_32
#define IWDG_PRESCALER_32
Definition: stm32f4xx_hal_iwdg.h:99
IWDG_PRESCALER_256
#define IWDG_PRESCALER_256
Definition: stm32f4xx_hal_iwdg.h:102
IWDG_PRESCALER_128
#define IWDG_PRESCALER_128
Definition: stm32f4xx_hal_iwdg.h:101
IWDG_PRESCALER_8
#define IWDG_PRESCALER_8
Definition: stm32f4xx_hal_iwdg.h:97