stm8l15x_wwdg.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /**
  2. ******************************************************************************
  3. * @file stm8l15x_wwdg.h
  4. * @author MCD Application Team
  5. * @version V1.6.1
  6. * @date 30-September-2014
  7. * @brief This file contains all the functions prototypes for the WWDG firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
  13. *
  14. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  15. * You may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at:
  17. *
  18. * http://www.st.com/software_license_agreement_liberty_v2
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. ******************************************************************************
  27. */
  28. /* Define to prevent recursive inclusion -------------------------------------*/
  29. #ifndef __STM8L15x_WWDG_H
  30. #define __STM8L15x_WWDG_H
  31. /* Includes ------------------------------------------------------------------*/
  32. #include "stm8l15x.h"
  33. /** @addtogroup STM8L15x_StdPeriph_Driver
  34. * @{
  35. */
  36. /** @addtogroup WWDG
  37. * @{
  38. */
  39. /* Exported types ------------------------------------------------------------*/
  40. /* Exported constants --------------------------------------------------------*/
  41. /* Exported macro ------------------------------------------------------------*/
  42. /** @defgroup WWDG_Exported_Macros
  43. * @{
  44. */
  45. /** @defgroup WWDG_WindowLimitValue
  46. * @{
  47. */
  48. #define IS_WWDG_WINDOW_LIMIT_VALUE(WindowLimitValue) ((WindowLimitValue) <= 0x7F)
  49. /**
  50. * @}
  51. */
  52. /** @defgroup WWDG_CounterValue
  53. * @{
  54. */
  55. #define IS_WWDG_COUNTER_VALUE(CounterValue) ((CounterValue) <= 0x7F)
  56. /**
  57. * @}
  58. */
  59. /**
  60. * @}
  61. */
  62. /* Exported functions ------------------------------------------------------- */
  63. /* Refresh window and Counter configuration functions *************************/
  64. void WWDG_Init(uint8_t Counter, uint8_t WindowValue);
  65. void WWDG_SetWindowValue(uint8_t WindowValue);
  66. void WWDG_SetCounter(uint8_t Counter);
  67. /* WWDG activation function ***************************************************/
  68. void WWDG_Enable(uint8_t Counter);
  69. /* WWDG counter and software reset management **********************************/
  70. uint8_t WWDG_GetCounter(void);
  71. void WWDG_SWReset(void);
  72. #endif /* __STM8L15x_WWDG_H */
  73. /**
  74. * @}
  75. */
  76. /**
  77. * @}
  78. */
  79. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/