Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
116:c0f6e94411f5
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 115:87f2f5183dfb 1 /**
Kojto 115:87f2f5183dfb 2 ******************************************************************************
Kojto 115:87f2f5183dfb 3 * @file stm32f7xx_hal_wwdg.h
Kojto 115:87f2f5183dfb 4 * @author MCD Application Team
Kojto 116:c0f6e94411f5 5 * @version V1.0.4
Kojto 116:c0f6e94411f5 6 * @date 09-December-2015
Kojto 115:87f2f5183dfb 7 * @brief Header file of WWDG HAL module.
Kojto 115:87f2f5183dfb 8 ******************************************************************************
Kojto 115:87f2f5183dfb 9 * @attention
Kojto 115:87f2f5183dfb 10 *
Kojto 115:87f2f5183dfb 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Kojto 115:87f2f5183dfb 12 *
Kojto 115:87f2f5183dfb 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 115:87f2f5183dfb 14 * are permitted provided that the following conditions are met:
Kojto 115:87f2f5183dfb 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 115:87f2f5183dfb 16 * this list of conditions and the following disclaimer.
Kojto 115:87f2f5183dfb 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 115:87f2f5183dfb 18 * this list of conditions and the following disclaimer in the documentation
Kojto 115:87f2f5183dfb 19 * and/or other materials provided with the distribution.
Kojto 115:87f2f5183dfb 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 115:87f2f5183dfb 21 * may be used to endorse or promote products derived from this software
Kojto 115:87f2f5183dfb 22 * without specific prior written permission.
Kojto 115:87f2f5183dfb 23 *
Kojto 115:87f2f5183dfb 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 115:87f2f5183dfb 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 115:87f2f5183dfb 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 115:87f2f5183dfb 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 115:87f2f5183dfb 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 115:87f2f5183dfb 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 115:87f2f5183dfb 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 115:87f2f5183dfb 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 115:87f2f5183dfb 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 115:87f2f5183dfb 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 115:87f2f5183dfb 34 *
Kojto 115:87f2f5183dfb 35 ******************************************************************************
Kojto 115:87f2f5183dfb 36 */
Kojto 115:87f2f5183dfb 37
Kojto 115:87f2f5183dfb 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 115:87f2f5183dfb 39 #ifndef __STM32F7xx_HAL_WWDG_H
Kojto 115:87f2f5183dfb 40 #define __STM32F7xx_HAL_WWDG_H
Kojto 115:87f2f5183dfb 41
Kojto 115:87f2f5183dfb 42 #ifdef __cplusplus
Kojto 115:87f2f5183dfb 43 extern "C" {
Kojto 115:87f2f5183dfb 44 #endif
Kojto 115:87f2f5183dfb 45
Kojto 115:87f2f5183dfb 46 /* Includes ------------------------------------------------------------------*/
Kojto 115:87f2f5183dfb 47 #include "stm32f7xx_hal_def.h"
Kojto 115:87f2f5183dfb 48
Kojto 115:87f2f5183dfb 49 /** @addtogroup STM32F7xx_HAL_Driver
Kojto 115:87f2f5183dfb 50 * @{
Kojto 115:87f2f5183dfb 51 */
Kojto 115:87f2f5183dfb 52
Kojto 115:87f2f5183dfb 53 /** @addtogroup WWDG
Kojto 115:87f2f5183dfb 54 * @{
Kojto 115:87f2f5183dfb 55 */
Kojto 115:87f2f5183dfb 56
Kojto 115:87f2f5183dfb 57 /* Exported types ------------------------------------------------------------*/
Kojto 115:87f2f5183dfb 58 /** @defgroup WWDG_Exported_Types WWDG Exported Types
Kojto 115:87f2f5183dfb 59 * @{
Kojto 115:87f2f5183dfb 60 */
Kojto 115:87f2f5183dfb 61
Kojto 115:87f2f5183dfb 62 /**
Kojto 115:87f2f5183dfb 63 * @brief WWDG HAL State Structure definition
Kojto 115:87f2f5183dfb 64 */
Kojto 115:87f2f5183dfb 65 typedef enum
Kojto 115:87f2f5183dfb 66 {
Kojto 115:87f2f5183dfb 67 HAL_WWDG_STATE_RESET = 0x00, /*!< WWDG not yet initialized or disabled */
Kojto 115:87f2f5183dfb 68 HAL_WWDG_STATE_READY = 0x01, /*!< WWDG initialized and ready for use */
Kojto 115:87f2f5183dfb 69 HAL_WWDG_STATE_BUSY = 0x02, /*!< WWDG internal process is ongoing */
Kojto 115:87f2f5183dfb 70 HAL_WWDG_STATE_TIMEOUT = 0x03, /*!< WWDG timeout state */
Kojto 115:87f2f5183dfb 71 HAL_WWDG_STATE_ERROR = 0x04 /*!< WWDG error state */
Kojto 115:87f2f5183dfb 72 }HAL_WWDG_StateTypeDef;
Kojto 115:87f2f5183dfb 73
Kojto 115:87f2f5183dfb 74 /**
Kojto 115:87f2f5183dfb 75 * @brief WWDG Init structure definition
Kojto 115:87f2f5183dfb 76 */
Kojto 115:87f2f5183dfb 77 typedef struct
Kojto 115:87f2f5183dfb 78 {
Kojto 115:87f2f5183dfb 79 uint32_t Prescaler; /*!< Specifies the prescaler value of the WWDG.
Kojto 115:87f2f5183dfb 80 This parameter can be a value of @ref WWDG_Prescaler */
Kojto 115:87f2f5183dfb 81
Kojto 115:87f2f5183dfb 82 uint32_t Window; /*!< Specifies the WWDG window value to be compared to the downcounter.
Kojto 115:87f2f5183dfb 83 This parameter must be a number lower than Max_Data = 0x80 */
Kojto 115:87f2f5183dfb 84
Kojto 115:87f2f5183dfb 85 uint32_t Counter; /*!< Specifies the WWDG free-running downcounter value.
Kojto 115:87f2f5183dfb 86 This parameter must be a number between Min_Data = 0x40 and Max_Data = 0x7F */
Kojto 115:87f2f5183dfb 87
Kojto 115:87f2f5183dfb 88 }WWDG_InitTypeDef;
Kojto 115:87f2f5183dfb 89
Kojto 115:87f2f5183dfb 90 /**
Kojto 115:87f2f5183dfb 91 * @brief WWDG handle Structure definition
Kojto 115:87f2f5183dfb 92 */
Kojto 115:87f2f5183dfb 93 typedef struct
Kojto 115:87f2f5183dfb 94 {
Kojto 115:87f2f5183dfb 95 WWDG_TypeDef *Instance; /*!< Register base address */
Kojto 115:87f2f5183dfb 96
Kojto 115:87f2f5183dfb 97 WWDG_InitTypeDef Init; /*!< WWDG required parameters */
Kojto 115:87f2f5183dfb 98
Kojto 115:87f2f5183dfb 99 HAL_LockTypeDef Lock; /*!< WWDG locking object */
Kojto 115:87f2f5183dfb 100
Kojto 115:87f2f5183dfb 101 __IO HAL_WWDG_StateTypeDef State; /*!< WWDG communication state */
Kojto 115:87f2f5183dfb 102
Kojto 115:87f2f5183dfb 103 }WWDG_HandleTypeDef;
Kojto 115:87f2f5183dfb 104 /**
Kojto 115:87f2f5183dfb 105 * @}
Kojto 115:87f2f5183dfb 106 */
Kojto 115:87f2f5183dfb 107
Kojto 115:87f2f5183dfb 108 /* Exported constants --------------------------------------------------------*/
Kojto 115:87f2f5183dfb 109 /** @defgroup WWDG_Exported_Constants WWDG Exported Constants
Kojto 115:87f2f5183dfb 110 * @{
Kojto 115:87f2f5183dfb 111 */
Kojto 115:87f2f5183dfb 112
Kojto 115:87f2f5183dfb 113 /** @defgroup WWDG_Interrupt_definition WWDG Interrupt definition
Kojto 115:87f2f5183dfb 114 * @{
Kojto 115:87f2f5183dfb 115 */
Kojto 115:87f2f5183dfb 116 #define WWDG_IT_EWI WWDG_CFR_EWI /*!< Early wakeup interrupt */
Kojto 115:87f2f5183dfb 117 /**
Kojto 115:87f2f5183dfb 118 * @}
Kojto 115:87f2f5183dfb 119 */
Kojto 115:87f2f5183dfb 120
Kojto 115:87f2f5183dfb 121 /** @defgroup WWDG_Flag_definition WWDG Flag definition
Kojto 115:87f2f5183dfb 122 * @brief WWDG Flag definition
Kojto 115:87f2f5183dfb 123 * @{
Kojto 115:87f2f5183dfb 124 */
Kojto 115:87f2f5183dfb 125 #define WWDG_FLAG_EWIF WWDG_SR_EWIF /*!< Early wakeup interrupt flag */
Kojto 115:87f2f5183dfb 126 /**
Kojto 115:87f2f5183dfb 127 * @}
Kojto 115:87f2f5183dfb 128 */
Kojto 115:87f2f5183dfb 129
Kojto 115:87f2f5183dfb 130 /** @defgroup WWDG_Prescaler WWDG Prescaler
Kojto 115:87f2f5183dfb 131 * @{
Kojto 115:87f2f5183dfb 132 */
Kojto 115:87f2f5183dfb 133 #define WWDG_PRESCALER_1 ((uint32_t)0x00000000) /*!< WWDG counter clock = (PCLK1/4096)/1 */
Kojto 116:c0f6e94411f5 134 #define WWDG_PRESCALER_2 WWDG_CFR_WDGTB_0 /*!< WWDG counter clock = (PCLK1/4096)/2 */
Kojto 116:c0f6e94411f5 135 #define WWDG_PRESCALER_4 WWDG_CFR_WDGTB_1 /*!< WWDG counter clock = (PCLK1/4096)/4 */
Kojto 115:87f2f5183dfb 136 #define WWDG_PRESCALER_8 WWDG_CFR_WDGTB /*!< WWDG counter clock = (PCLK1/4096)/8 */
Kojto 115:87f2f5183dfb 137 /**
Kojto 115:87f2f5183dfb 138 * @}
Kojto 115:87f2f5183dfb 139 */
Kojto 115:87f2f5183dfb 140
Kojto 115:87f2f5183dfb 141 /**
Kojto 115:87f2f5183dfb 142 * @}
Kojto 115:87f2f5183dfb 143 */
Kojto 115:87f2f5183dfb 144
Kojto 115:87f2f5183dfb 145 /* Exported macro ------------------------------------------------------------*/
Kojto 115:87f2f5183dfb 146 /** @defgroup WWDG_Exported_Macros WWDG Exported Macros
Kojto 115:87f2f5183dfb 147 * @{
Kojto 115:87f2f5183dfb 148 */
Kojto 115:87f2f5183dfb 149
Kojto 115:87f2f5183dfb 150 /** @brief Reset WWDG handle state
Kojto 115:87f2f5183dfb 151 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 152 * @retval None
Kojto 115:87f2f5183dfb 153 */
Kojto 115:87f2f5183dfb 154 #define __HAL_WWDG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_WWDG_STATE_RESET)
Kojto 115:87f2f5183dfb 155
Kojto 115:87f2f5183dfb 156 /**
Kojto 115:87f2f5183dfb 157 * @brief Enables the WWDG peripheral.
Kojto 115:87f2f5183dfb 158 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 159 * @retval None
Kojto 115:87f2f5183dfb 160 */
Kojto 115:87f2f5183dfb 161 #define __HAL_WWDG_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA)
Kojto 115:87f2f5183dfb 162
Kojto 115:87f2f5183dfb 163 /**
Kojto 115:87f2f5183dfb 164 * @brief Disables the WWDG peripheral.
Kojto 115:87f2f5183dfb 165 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 166 * @note WARNING: This is a dummy macro for HAL code alignment.
Kojto 115:87f2f5183dfb 167 * Once enable, WWDG Peripheral cannot be disabled except by a system reset.
Kojto 115:87f2f5183dfb 168 * @retval None
Kojto 115:87f2f5183dfb 169 */
Kojto 115:87f2f5183dfb 170 #define __HAL_WWDG_DISABLE(__HANDLE__) /* dummy macro */
Kojto 115:87f2f5183dfb 171
Kojto 115:87f2f5183dfb 172 /**
Kojto 115:87f2f5183dfb 173 * @brief Gets the selected WWDG's it status.
Kojto 115:87f2f5183dfb 174 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 175 * @param __INTERRUPT__: specifies the it to check.
Kojto 115:87f2f5183dfb 176 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 177 * @arg WWDG_FLAG_EWIF: Early wakeup interrupt IT
Kojto 115:87f2f5183dfb 178 * @retval The new state of WWDG_FLAG (SET or RESET).
Kojto 115:87f2f5183dfb 179 */
Kojto 115:87f2f5183dfb 180 #define __HAL_WWDG_GET_IT(__HANDLE__, __INTERRUPT__) __HAL_WWDG_GET_FLAG((__HANDLE__),(__INTERRUPT__))
Kojto 115:87f2f5183dfb 181
Kojto 115:87f2f5183dfb 182 /** @brief Clear the WWDG's interrupt pending bits
Kojto 115:87f2f5183dfb 183 * bits to clear the selected interrupt pending bits.
Kojto 115:87f2f5183dfb 184 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 185 * @param __INTERRUPT__: specifies the interrupt pending bit to clear.
Kojto 115:87f2f5183dfb 186 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 187 * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag
Kojto 115:87f2f5183dfb 188 */
Kojto 115:87f2f5183dfb 189 #define __HAL_WWDG_CLEAR_IT(__HANDLE__, __INTERRUPT__) __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__))
Kojto 115:87f2f5183dfb 190
Kojto 115:87f2f5183dfb 191 /**
Kojto 115:87f2f5183dfb 192 * @brief Enables the WWDG early wakeup interrupt.
Kojto 115:87f2f5183dfb 193 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 194 * @param __INTERRUPT__: specifies the interrupt to enable.
Kojto 115:87f2f5183dfb 195 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 196 * @arg WWDG_IT_EWI: Early wakeup interrupt
Kojto 115:87f2f5183dfb 197 * @note Once enabled this interrupt cannot be disabled except by a system reset.
Kojto 115:87f2f5183dfb 198 * @retval None
Kojto 115:87f2f5183dfb 199 */
Kojto 115:87f2f5183dfb 200 #define __HAL_WWDG_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CFR, (__INTERRUPT__))
Kojto 115:87f2f5183dfb 201
Kojto 115:87f2f5183dfb 202 /**
Kojto 115:87f2f5183dfb 203 * @brief Disables the WWDG early wakeup interrupt.
Kojto 115:87f2f5183dfb 204 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 205 * @param __INTERRUPT__: specifies the interrupt to disable.
Kojto 115:87f2f5183dfb 206 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 207 * @arg WWDG_IT_EWI: Early wakeup interrupt
Kojto 115:87f2f5183dfb 208 * @note WARNING: This is a dummy macro for HAL code alignment.
Kojto 115:87f2f5183dfb 209 * Once enabled this interrupt cannot be disabled except by a system reset.
Kojto 115:87f2f5183dfb 210 * @retval None
Kojto 115:87f2f5183dfb 211 */
Kojto 115:87f2f5183dfb 212 #define __HAL_WWDG_DISABLE_IT(__HANDLE__, __INTERRUPT__) /* dummy macro */
Kojto 115:87f2f5183dfb 213
Kojto 115:87f2f5183dfb 214 /**
Kojto 115:87f2f5183dfb 215 * @brief Gets the selected WWDG's flag status.
Kojto 115:87f2f5183dfb 216 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 217 * @param __FLAG__: specifies the flag to check.
Kojto 115:87f2f5183dfb 218 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 219 * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag
Kojto 115:87f2f5183dfb 220 * @retval The new state of WWDG_FLAG (SET or RESET).
Kojto 115:87f2f5183dfb 221 */
Kojto 115:87f2f5183dfb 222 #define __HAL_WWDG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
Kojto 115:87f2f5183dfb 223
Kojto 115:87f2f5183dfb 224 /**
Kojto 115:87f2f5183dfb 225 * @brief Clears the WWDG's pending flags.
Kojto 115:87f2f5183dfb 226 * @param __HANDLE__: WWDG handle
Kojto 115:87f2f5183dfb 227 * @param __FLAG__: specifies the flag to clear.
Kojto 115:87f2f5183dfb 228 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 229 * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag
Kojto 115:87f2f5183dfb 230 * @retval None
Kojto 115:87f2f5183dfb 231 */
Kojto 115:87f2f5183dfb 232 #define __HAL_WWDG_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = ~(__FLAG__))
Kojto 115:87f2f5183dfb 233
Kojto 115:87f2f5183dfb 234 /** @brief Checks if the specified WWDG interrupt source is enabled or disabled.
Kojto 115:87f2f5183dfb 235 * @param __HANDLE__: WWDG Handle.
Kojto 115:87f2f5183dfb 236 * @param __INTERRUPT__: specifies the WWDG interrupt source to check.
Kojto 115:87f2f5183dfb 237 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 238 * @arg WWDG_IT_EWI: Early Wakeup Interrupt
Kojto 115:87f2f5183dfb 239 * @retval state of __INTERRUPT__ (TRUE or FALSE).
Kojto 115:87f2f5183dfb 240 */
Kojto 115:87f2f5183dfb 241 #define __HAL_WWDG_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CFR & (__INTERRUPT__)) == (__INTERRUPT__))
Kojto 115:87f2f5183dfb 242
Kojto 115:87f2f5183dfb 243 /**
Kojto 115:87f2f5183dfb 244 * @}
Kojto 115:87f2f5183dfb 245 */
Kojto 115:87f2f5183dfb 246
Kojto 115:87f2f5183dfb 247 /* Exported functions --------------------------------------------------------*/
Kojto 115:87f2f5183dfb 248 /** @addtogroup WWDG_Exported_Functions
Kojto 115:87f2f5183dfb 249 * @{
Kojto 115:87f2f5183dfb 250 */
Kojto 115:87f2f5183dfb 251
Kojto 115:87f2f5183dfb 252 /** @addtogroup WWDG_Exported_Functions_Group1
Kojto 115:87f2f5183dfb 253 * @{
Kojto 115:87f2f5183dfb 254 */
Kojto 115:87f2f5183dfb 255 /* Initialization/de-initialization functions **********************************/
Kojto 115:87f2f5183dfb 256 HAL_StatusTypeDef HAL_WWDG_Init(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 257 HAL_StatusTypeDef HAL_WWDG_DeInit(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 258 void HAL_WWDG_MspInit(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 259 void HAL_WWDG_MspDeInit(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 260 void HAL_WWDG_WakeupCallback(WWDG_HandleTypeDef* hwwdg);
Kojto 115:87f2f5183dfb 261 /**
Kojto 115:87f2f5183dfb 262 * @}
Kojto 115:87f2f5183dfb 263 */
Kojto 115:87f2f5183dfb 264
Kojto 115:87f2f5183dfb 265 /** @addtogroup WWDG_Exported_Functions_Group2
Kojto 115:87f2f5183dfb 266 * @{
Kojto 115:87f2f5183dfb 267 */
Kojto 115:87f2f5183dfb 268 /* I/O operation functions ******************************************************/
Kojto 115:87f2f5183dfb 269 HAL_StatusTypeDef HAL_WWDG_Start(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 270 HAL_StatusTypeDef HAL_WWDG_Start_IT(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 271 HAL_StatusTypeDef HAL_WWDG_Refresh(WWDG_HandleTypeDef *hwwdg, uint32_t Counter);
Kojto 115:87f2f5183dfb 272 void HAL_WWDG_IRQHandler(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 273 /**
Kojto 115:87f2f5183dfb 274 * @}
Kojto 115:87f2f5183dfb 275 */
Kojto 115:87f2f5183dfb 276
Kojto 115:87f2f5183dfb 277 /** @addtogroup WWDG_Exported_Functions_Group3
Kojto 115:87f2f5183dfb 278 * @{
Kojto 115:87f2f5183dfb 279 */
Kojto 115:87f2f5183dfb 280 /* Peripheral State functions **************************************************/
Kojto 115:87f2f5183dfb 281 HAL_WWDG_StateTypeDef HAL_WWDG_GetState(WWDG_HandleTypeDef *hwwdg);
Kojto 115:87f2f5183dfb 282 /**
Kojto 115:87f2f5183dfb 283 * @}
Kojto 115:87f2f5183dfb 284 */
Kojto 115:87f2f5183dfb 285
Kojto 115:87f2f5183dfb 286 /**
Kojto 115:87f2f5183dfb 287 * @}
Kojto 115:87f2f5183dfb 288 */
Kojto 115:87f2f5183dfb 289
Kojto 115:87f2f5183dfb 290 /* Private types -------------------------------------------------------------*/
Kojto 115:87f2f5183dfb 291 /* Private variables ---------------------------------------------------------*/
Kojto 115:87f2f5183dfb 292 /* Private constants ---------------------------------------------------------*/
Kojto 115:87f2f5183dfb 293 /** @defgroup WWDG_Private_Constants WWDG Private Constants
Kojto 115:87f2f5183dfb 294 * @{
Kojto 115:87f2f5183dfb 295 */
Kojto 115:87f2f5183dfb 296
Kojto 115:87f2f5183dfb 297 /**
Kojto 115:87f2f5183dfb 298 * @}
Kojto 115:87f2f5183dfb 299 */
Kojto 115:87f2f5183dfb 300
Kojto 115:87f2f5183dfb 301 /* Private macros ------------------------------------------------------------*/
Kojto 115:87f2f5183dfb 302 /** @defgroup WWDG_Private_Macros WWDG Private Macros
Kojto 115:87f2f5183dfb 303 * @{
Kojto 115:87f2f5183dfb 304 */
Kojto 115:87f2f5183dfb 305 #define IS_WWDG_PRESCALER(__PRESCALER__) (((__PRESCALER__) == WWDG_PRESCALER_1) || \
Kojto 115:87f2f5183dfb 306 ((__PRESCALER__) == WWDG_PRESCALER_2) || \
Kojto 115:87f2f5183dfb 307 ((__PRESCALER__) == WWDG_PRESCALER_4) || \
Kojto 115:87f2f5183dfb 308 ((__PRESCALER__) == WWDG_PRESCALER_8))
Kojto 115:87f2f5183dfb 309 #define IS_WWDG_WINDOW(__WINDOW__) ((__WINDOW__) <= 0x7F)
Kojto 115:87f2f5183dfb 310 #define IS_WWDG_COUNTER(__COUNTER__) (((__COUNTER__) >= 0x40) && ((__COUNTER__) <= 0x7F))
Kojto 115:87f2f5183dfb 311 /**
Kojto 115:87f2f5183dfb 312 * @}
Kojto 115:87f2f5183dfb 313 */
Kojto 115:87f2f5183dfb 314
Kojto 115:87f2f5183dfb 315 /* Private functions ---------------------------------------------------------*/
Kojto 115:87f2f5183dfb 316 /** @defgroup WWDG_Private_Functions WWDG Private Functions
Kojto 115:87f2f5183dfb 317 * @{
Kojto 115:87f2f5183dfb 318 */
Kojto 115:87f2f5183dfb 319
Kojto 115:87f2f5183dfb 320 /**
Kojto 115:87f2f5183dfb 321 * @}
Kojto 115:87f2f5183dfb 322 */
Kojto 115:87f2f5183dfb 323
Kojto 115:87f2f5183dfb 324 /**
Kojto 115:87f2f5183dfb 325 * @}
Kojto 115:87f2f5183dfb 326 */
Kojto 115:87f2f5183dfb 327
Kojto 115:87f2f5183dfb 328 /**
Kojto 115:87f2f5183dfb 329 * @}
Kojto 115:87f2f5183dfb 330 */
Kojto 115:87f2f5183dfb 331 #ifdef __cplusplus
Kojto 115:87f2f5183dfb 332 }
Kojto 115:87f2f5183dfb 333 #endif
Kojto 115:87f2f5183dfb 334
Kojto 115:87f2f5183dfb 335 #endif /* __STM32F7xx_HAL_WWDG_H */
Kojto 115:87f2f5183dfb 336
Kojto 115:87f2f5183dfb 337 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/