24 #ifndef __STM32F10x_WWDG_H
25 #define __STM32F10x_WWDG_H
58 #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
59 #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
60 #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
61 #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
62 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
63 ((PRESCALER) == WWDG_Prescaler_2) || \
64 ((PRESCALER) == WWDG_Prescaler_4) || \
65 ((PRESCALER) == WWDG_Prescaler_8))
66 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
67 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))