ch32v30x_wwdg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /********************************** (C) COPYRIGHT *******************************
  2. * File Name : ch32v30x_wwdg.h
  3. * Author : WCH
  4. * Version : V1.0.0
  5. * Date : 2021/06/06
  6. * Description : This file contains all the functions prototypes for the WWDG
  7. * firmware library.
  8. *********************************************************************************
  9. * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
  10. * Attention: This software (modified or not) and binary are used for
  11. * microcontroller manufactured by Nanjing Qinheng Microelectronics.
  12. *******************************************************************************/
  13. #ifndef __CH32V30x_WWDG_H
  14. #define __CH32V30x_WWDG_H
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #include "ch32v30x.h"
  19. /* WWDG_Prescaler */
  20. #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
  21. #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
  22. #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
  23. #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
  24. void WWDG_DeInit(void);
  25. void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
  26. void WWDG_SetWindowValue(uint8_t WindowValue);
  27. void WWDG_EnableIT(void);
  28. void WWDG_SetCounter(uint8_t Counter);
  29. void WWDG_Enable(uint8_t Counter);
  30. FlagStatus WWDG_GetFlagStatus(void);
  31. void WWDG_ClearFlag(void);
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif