24 #ifndef __STM32F10x_IWDG_H
25 #define __STM32F10x_IWDG_H
58 #define IWDG_WriteAccess_Enable ((uint16_t)0x5555)
59 #define IWDG_WriteAccess_Disable ((uint16_t)0x0000)
60 #define IS_IWDG_WRITE_ACCESS(ACCESS) (((ACCESS) == IWDG_WriteAccess_Enable) || \
61 ((ACCESS) == IWDG_WriteAccess_Disable))
70 #define IWDG_Prescaler_4 ((uint8_t)0x00)
71 #define IWDG_Prescaler_8 ((uint8_t)0x01)
72 #define IWDG_Prescaler_16 ((uint8_t)0x02)
73 #define IWDG_Prescaler_32 ((uint8_t)0x03)
74 #define IWDG_Prescaler_64 ((uint8_t)0x04)
75 #define IWDG_Prescaler_128 ((uint8_t)0x05)
76 #define IWDG_Prescaler_256 ((uint8_t)0x06)
77 #define IS_IWDG_PRESCALER(PRESCALER) (((PRESCALER) == IWDG_Prescaler_4) || \
78 ((PRESCALER) == IWDG_Prescaler_8) || \
79 ((PRESCALER) == IWDG_Prescaler_16) || \
80 ((PRESCALER) == IWDG_Prescaler_32) || \
81 ((PRESCALER) == IWDG_Prescaler_64) || \
82 ((PRESCALER) == IWDG_Prescaler_128)|| \
83 ((PRESCALER) == IWDG_Prescaler_256))
92 #define IWDG_FLAG_PVU ((uint16_t)0x0001)
93 #define IWDG_FLAG_RVU ((uint16_t)0x0002)
94 #define IS_IWDG_FLAG(FLAG) (((FLAG) == IWDG_FLAG_PVU) || ((FLAG) == IWDG_FLAG_RVU))
95 #define IS_IWDG_RELOAD(RELOAD) ((RELOAD) <= 0xFFF)