gd32f10x_wwdg.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. ******************************************************************************
  3. * @brief WWDG header file of the firmware library.
  4. ******************************************************************************
  5. */
  6. /* Define to prevent recursive inclusion -------------------------------------*/
  7. #ifndef __GD32F10X_WWDG_H
  8. #define __GD32F10X_WWDG_H
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /* Includes ------------------------------------------------------------------*/
  13. #include "gd32f10x.h"
  14. /** @addtogroup GD32F10x_Firmware
  15. * @{
  16. */
  17. /** @defgroup WWDG
  18. * @{
  19. */
  20. /** @defgroup WWDG_Exported_Constants
  21. * @{
  22. */
  23. /** @defgroup WWDG_PRESCALER
  24. * @{
  25. */
  26. #define WWDG_PRESCALER_1 ((uint32_t)0x00000000)
  27. #define WWDG_PRESCALER_2 ((uint32_t)0x00000080)
  28. #define WWDG_PRESCALER_4 ((uint32_t)0x00000100)
  29. #define WWDG_PRESCALER_8 ((uint32_t)0x00000180)
  30. /**
  31. * @}
  32. */
  33. /**
  34. * @}
  35. */
  36. /* Exported functions ------------------------------------------------------- */
  37. /** @defgroup WWDG_Exported_Functions
  38. * @{
  39. */
  40. void WWDG_DeInit(void);
  41. void WWDG_SetPrescalerValue(uint32_t PrescalerValue);
  42. void WWDG_SetWindowValue(uint8_t WindowValue);
  43. void WWDG_EnableInt(void);
  44. void WWDG_SetCounterValue(uint8_t CounterValue);
  45. void WWDG_Enable(uint8_t CounterValue);
  46. TypeState WWDG_GetBitState(void);
  47. void WWDG_ClearBitState(void);
  48. /**
  49. * @}
  50. */
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif /* __GD32F10X_WWDG_H */
  55. /**
  56. * @}
  57. */
  58. /**
  59. * @}
  60. */