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:
110:165afa46840b
.

Who changed what in which revision?

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