A bundled STM32F10x Std Periph and CMSIS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

117 lines
2.9 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32f10x_wwdg.h
  4. * @author MCD Application Team
  5. * @version V3.5.0
  6. * @date 11-March-2011
  7. * @brief This file contains all the functions prototypes for the WWDG firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  13. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  14. * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  15. * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  16. * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  17. * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  18. *
  19. * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
  20. ******************************************************************************
  21. */
  22. /* Define to prevent recursive inclusion -------------------------------------*/
  23. #ifndef __STM32F10x_WWDG_H
  24. #define __STM32F10x_WWDG_H
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. /* Includes ------------------------------------------------------------------*/
  29. #include "stm32f10x.h"
  30. #include "stm32f10x_assert.h"
  31. /** @addtogroup STM32F10x_StdPeriph_Driver
  32. * @{
  33. */
  34. /** @addtogroup WWDG
  35. * @{
  36. */
  37. /** @defgroup WWDG_Exported_Types
  38. * @{
  39. */
  40. /**
  41. * @}
  42. */
  43. /** @defgroup WWDG_Exported_Constants
  44. * @{
  45. */
  46. /** @defgroup WWDG_Prescaler
  47. * @{
  48. */
  49. #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
  50. #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
  51. #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
  52. #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
  53. #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
  54. ((PRESCALER) == WWDG_Prescaler_2) || \
  55. ((PRESCALER) == WWDG_Prescaler_4) || \
  56. ((PRESCALER) == WWDG_Prescaler_8))
  57. #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
  58. #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
  59. /**
  60. * @}
  61. */
  62. /**
  63. * @}
  64. */
  65. /** @defgroup WWDG_Exported_Macros
  66. * @{
  67. */
  68. /**
  69. * @}
  70. */
  71. /** @defgroup WWDG_Exported_Functions
  72. * @{
  73. */
  74. void WWDG_DeInit(void);
  75. void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
  76. void WWDG_SetWindowValue(uint8_t WindowValue);
  77. void WWDG_EnableIT(void);
  78. void WWDG_SetCounter(uint8_t Counter);
  79. void WWDG_Enable(uint8_t Counter);
  80. FlagStatus WWDG_GetFlagStatus(void);
  81. void WWDG_ClearFlag(void);
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85. #endif /* __STM32F10x_WWDG_H */
  86. /**
  87. * @}
  88. */
  89. /**
  90. * @}
  91. */
  92. /**
  93. * @}
  94. */
  95. /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/