RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros

Macros

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

Detailed Description

Macro Definition Documentation

◆ 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))
#define IWDG_PRESCALER_128
Definition: stm32h7xx_hal_iwdg.h:91
#define IWDG_PRESCALER_4
Definition: stm32h7xx_hal_iwdg.h:86
#define IWDG_PRESCALER_64
Definition: stm32h7xx_hal_iwdg.h:90
#define IWDG_PRESCALER_8
Definition: stm32h7xx_hal_iwdg.h:87
#define IWDG_PRESCALER_256
Definition: stm32h7xx_hal_iwdg.h:92
#define IWDG_PRESCALER_16
Definition: stm32h7xx_hal_iwdg.h:88
#define IWDG_PRESCALER_32
Definition: stm32h7xx_hal_iwdg.h:89

Check IWDG prescaler value.

Parameters
__PRESCALER__IWDG prescaler value
Return values
None

◆ IS_IWDG_RELOAD

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

Check IWDG reload value.

Parameters
__RELOAD__IWDG reload value
Return values
None

◆ IS_IWDG_WINDOW

#define IS_IWDG_WINDOW (   __WINDOW__)    ((__WINDOW__) <= IWDG_WINR_WIN)

Check IWDG window value.

Parameters
__WINDOW__IWDG window value
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, IWDG_RLR and IWDG_WINR registers.

Parameters
__HANDLE__IWDG handle
Return values
None

◆ 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, IWDG_RLR and IWDG_WINR registers.

Parameters
__HANDLE__IWDG handle
Return values
None