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_iwdg.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 IWDG 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_IWDG_H
Kojto 115:87f2f5183dfb 40 #define __STM32F7xx_HAL_IWDG_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 IWDG
Kojto 115:87f2f5183dfb 54 * @{
Kojto 115:87f2f5183dfb 55 */
Kojto 115:87f2f5183dfb 56
Kojto 115:87f2f5183dfb 57 /* Exported types ------------------------------------------------------------*/
Kojto 115:87f2f5183dfb 58 /** @defgroup IWDG_Exported_Types IWDG Exported Types
Kojto 115:87f2f5183dfb 59 * @{
Kojto 115:87f2f5183dfb 60 */
Kojto 115:87f2f5183dfb 61
Kojto 115:87f2f5183dfb 62 /**
Kojto 115:87f2f5183dfb 63 * @brief IWDG HAL State Structure definition
Kojto 115:87f2f5183dfb 64 */
Kojto 115:87f2f5183dfb 65 typedef enum
Kojto 115:87f2f5183dfb 66 {
Kojto 115:87f2f5183dfb 67 HAL_IWDG_STATE_RESET = 0x00, /*!< IWDG not yet initialized or disabled */
Kojto 115:87f2f5183dfb 68 HAL_IWDG_STATE_READY = 0x01, /*!< IWDG initialized and ready for use */
Kojto 115:87f2f5183dfb 69 HAL_IWDG_STATE_BUSY = 0x02, /*!< IWDG internal process is ongoing */
Kojto 115:87f2f5183dfb 70 HAL_IWDG_STATE_TIMEOUT = 0x03, /*!< IWDG timeout state */
Kojto 115:87f2f5183dfb 71 HAL_IWDG_STATE_ERROR = 0x04 /*!< IWDG error state */
Kojto 115:87f2f5183dfb 72
Kojto 115:87f2f5183dfb 73 }HAL_IWDG_StateTypeDef;
Kojto 115:87f2f5183dfb 74
Kojto 115:87f2f5183dfb 75 /**
Kojto 115:87f2f5183dfb 76 * @brief IWDG Init structure definition
Kojto 115:87f2f5183dfb 77 */
Kojto 115:87f2f5183dfb 78 typedef struct
Kojto 115:87f2f5183dfb 79 {
Kojto 115:87f2f5183dfb 80 uint32_t Prescaler; /*!< Select the prescaler of the IWDG.
Kojto 115:87f2f5183dfb 81 This parameter can be a value of @ref IWDG_Prescaler */
Kojto 115:87f2f5183dfb 82
Kojto 115:87f2f5183dfb 83 uint32_t Reload; /*!< Specifies the IWDG down-counter reload value.
Kojto 115:87f2f5183dfb 84 This parameter must be a number between Min_Data = 0 and Max_Data = 0x0FFF */
Kojto 115:87f2f5183dfb 85
Kojto 115:87f2f5183dfb 86 uint32_t Window; /*!< Specifies the window value to be compared to the down-counter.
Kojto 115:87f2f5183dfb 87 This parameter must be a number between Min_Data = 0 and Max_Data = 0x0FFF */
Kojto 115:87f2f5183dfb 88
Kojto 115:87f2f5183dfb 89 } IWDG_InitTypeDef;
Kojto 115:87f2f5183dfb 90
Kojto 115:87f2f5183dfb 91 /**
Kojto 115:87f2f5183dfb 92 * @brief IWDG Handle Structure definition
Kojto 115:87f2f5183dfb 93 */
Kojto 115:87f2f5183dfb 94 typedef struct
Kojto 115:87f2f5183dfb 95 {
Kojto 115:87f2f5183dfb 96 IWDG_TypeDef *Instance; /*!< Register base address */
Kojto 115:87f2f5183dfb 97
Kojto 115:87f2f5183dfb 98 IWDG_InitTypeDef Init; /*!< IWDG required parameters */
Kojto 115:87f2f5183dfb 99
Kojto 115:87f2f5183dfb 100 HAL_LockTypeDef Lock; /*!< IWDG Locking object */
Kojto 115:87f2f5183dfb 101
Kojto 115:87f2f5183dfb 102 __IO HAL_IWDG_StateTypeDef State; /*!< IWDG communication state */
Kojto 115:87f2f5183dfb 103
Kojto 115:87f2f5183dfb 104 }IWDG_HandleTypeDef;
Kojto 115:87f2f5183dfb 105
Kojto 115:87f2f5183dfb 106 /**
Kojto 115:87f2f5183dfb 107 * @}
Kojto 115:87f2f5183dfb 108 */
Kojto 115:87f2f5183dfb 109
Kojto 115:87f2f5183dfb 110 /* Exported constants --------------------------------------------------------*/
Kojto 115:87f2f5183dfb 111 /** @defgroup IWDG_Exported_Constants IWDG Exported Constants
Kojto 115:87f2f5183dfb 112 * @{
Kojto 115:87f2f5183dfb 113 */
Kojto 115:87f2f5183dfb 114
Kojto 115:87f2f5183dfb 115 /** @defgroup IWDG_Prescaler IWDG Prescaler
Kojto 115:87f2f5183dfb 116 * @{
Kojto 115:87f2f5183dfb 117 */
Kojto 115:87f2f5183dfb 118 #define IWDG_PRESCALER_4 ((uint8_t)0x00) /*!< IWDG prescaler set to 4 */
Kojto 115:87f2f5183dfb 119 #define IWDG_PRESCALER_8 ((uint8_t)(IWDG_PR_PR_0)) /*!< IWDG prescaler set to 8 */
Kojto 115:87f2f5183dfb 120 #define IWDG_PRESCALER_16 ((uint8_t)(IWDG_PR_PR_1)) /*!< IWDG prescaler set to 16 */
Kojto 115:87f2f5183dfb 121 #define IWDG_PRESCALER_32 ((uint8_t)(IWDG_PR_PR_1 | IWDG_PR_PR_0)) /*!< IWDG prescaler set to 32 */
Kojto 115:87f2f5183dfb 122 #define IWDG_PRESCALER_64 ((uint8_t)(IWDG_PR_PR_2)) /*!< IWDG prescaler set to 64 */
Kojto 115:87f2f5183dfb 123 #define IWDG_PRESCALER_128 ((uint8_t)(IWDG_PR_PR_2 | IWDG_PR_PR_0)) /*!< IWDG prescaler set to 128 */
Kojto 115:87f2f5183dfb 124 #define IWDG_PRESCALER_256 ((uint8_t)(IWDG_PR_PR_2 | IWDG_PR_PR_1)) /*!< IWDG prescaler set to 256 */
Kojto 115:87f2f5183dfb 125 /**
Kojto 115:87f2f5183dfb 126 * @}
Kojto 115:87f2f5183dfb 127 */
Kojto 115:87f2f5183dfb 128
Kojto 115:87f2f5183dfb 129 /** @defgroup IWDG_Window IWDG Window
Kojto 115:87f2f5183dfb 130 * @{
Kojto 115:87f2f5183dfb 131 */
Kojto 115:87f2f5183dfb 132 #define IWDG_WINDOW_DISABLE ((uint32_t)0x00000FFF)
Kojto 115:87f2f5183dfb 133 /**
Kojto 115:87f2f5183dfb 134 * @}
Kojto 115:87f2f5183dfb 135 */
Kojto 115:87f2f5183dfb 136
Kojto 115:87f2f5183dfb 137 /**
Kojto 115:87f2f5183dfb 138 * @}
Kojto 115:87f2f5183dfb 139 */
Kojto 115:87f2f5183dfb 140
Kojto 115:87f2f5183dfb 141 /* Exported macros -----------------------------------------------------------*/
Kojto 115:87f2f5183dfb 142 /** @defgroup IWDG_Exported_Macros IWDG Exported Macros
Kojto 115:87f2f5183dfb 143 * @{
Kojto 115:87f2f5183dfb 144 */
Kojto 115:87f2f5183dfb 145
Kojto 115:87f2f5183dfb 146 /** @brief Reset IWDG handle state
Kojto 115:87f2f5183dfb 147 * @param __HANDLE__: IWDG handle.
Kojto 115:87f2f5183dfb 148 * @retval None
Kojto 115:87f2f5183dfb 149 */
Kojto 115:87f2f5183dfb 150 #define __HAL_IWDG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_IWDG_STATE_RESET)
Kojto 115:87f2f5183dfb 151
Kojto 115:87f2f5183dfb 152 /**
Kojto 115:87f2f5183dfb 153 * @brief Enables the IWDG peripheral.
Kojto 115:87f2f5183dfb 154 * @param __HANDLE__: IWDG handle
Kojto 115:87f2f5183dfb 155 * @retval None
Kojto 115:87f2f5183dfb 156 */
Kojto 115:87f2f5183dfb 157 #define __HAL_IWDG_START(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_ENABLE)
Kojto 115:87f2f5183dfb 158
Kojto 115:87f2f5183dfb 159 /**
Kojto 115:87f2f5183dfb 160 * @brief Reloads IWDG counter with value defined in the reload register
Kojto 115:87f2f5183dfb 161 * (write access to IWDG_PR and IWDG_RLR registers disabled).
Kojto 115:87f2f5183dfb 162 * @param __HANDLE__: IWDG handle
Kojto 115:87f2f5183dfb 163 * @retval None
Kojto 115:87f2f5183dfb 164 */
Kojto 115:87f2f5183dfb 165 #define __HAL_IWDG_RELOAD_COUNTER(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_RELOAD)
Kojto 115:87f2f5183dfb 166
Kojto 115:87f2f5183dfb 167 /**
Kojto 115:87f2f5183dfb 168 * @brief Gets the selected IWDG's flag status.
Kojto 115:87f2f5183dfb 169 * @param __HANDLE__: IWDG handle
Kojto 115:87f2f5183dfb 170 * @param __FLAG__: specifies the flag to check.
Kojto 115:87f2f5183dfb 171 * This parameter can be one of the following values:
Kojto 115:87f2f5183dfb 172 * @arg IWDG_FLAG_PVU: Watchdog counter reload value update flag
Kojto 115:87f2f5183dfb 173 * @arg IWDG_FLAG_RVU: Watchdog counter prescaler value flag
Kojto 115:87f2f5183dfb 174 * @arg IWDG_FLAG_WVU: Watchdog counter window value flag
Kojto 115:87f2f5183dfb 175 * @retval The new state of __FLAG__ (TRUE or FALSE) .
Kojto 115:87f2f5183dfb 176 */
Kojto 115:87f2f5183dfb 177 #define __HAL_IWDG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
Kojto 115:87f2f5183dfb 178
Kojto 115:87f2f5183dfb 179 /**
Kojto 115:87f2f5183dfb 180 * @}
Kojto 115:87f2f5183dfb 181 */
Kojto 115:87f2f5183dfb 182
Kojto 115:87f2f5183dfb 183 /* Exported functions --------------------------------------------------------*/
Kojto 115:87f2f5183dfb 184 /** @addtogroup IWDG_Exported_Functions
Kojto 115:87f2f5183dfb 185 * @{
Kojto 115:87f2f5183dfb 186 */
Kojto 115:87f2f5183dfb 187
Kojto 115:87f2f5183dfb 188 /** @addtogroup IWDG_Exported_Functions_Group1
Kojto 115:87f2f5183dfb 189 * @{
Kojto 115:87f2f5183dfb 190 */
Kojto 115:87f2f5183dfb 191 /* Initialization/de-initialization functions ********************************/
Kojto 115:87f2f5183dfb 192 HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg);
Kojto 115:87f2f5183dfb 193 void HAL_IWDG_MspInit(IWDG_HandleTypeDef *hiwdg);
Kojto 115:87f2f5183dfb 194 /**
Kojto 115:87f2f5183dfb 195 * @}
Kojto 115:87f2f5183dfb 196 */
Kojto 115:87f2f5183dfb 197
Kojto 115:87f2f5183dfb 198 /** @addtogroup IWDG_Exported_Functions_Group2
Kojto 115:87f2f5183dfb 199 * @{
Kojto 115:87f2f5183dfb 200 */
Kojto 115:87f2f5183dfb 201 /* I/O operation functions ****************************************************/
Kojto 115:87f2f5183dfb 202 HAL_StatusTypeDef HAL_IWDG_Start(IWDG_HandleTypeDef *hiwdg);
Kojto 115:87f2f5183dfb 203 HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg);
Kojto 115:87f2f5183dfb 204 /**
Kojto 115:87f2f5183dfb 205 * @}
Kojto 115:87f2f5183dfb 206 */
Kojto 115:87f2f5183dfb 207
Kojto 115:87f2f5183dfb 208 /** @addtogroup IWDG_Exported_Functions_Group3
Kojto 115:87f2f5183dfb 209 * @{
Kojto 115:87f2f5183dfb 210 */
Kojto 115:87f2f5183dfb 211 /* Peripheral State functions ************************************************/
Kojto 115:87f2f5183dfb 212 HAL_IWDG_StateTypeDef HAL_IWDG_GetState(IWDG_HandleTypeDef *hiwdg);
Kojto 115:87f2f5183dfb 213 /**
Kojto 115:87f2f5183dfb 214 * @}
Kojto 115:87f2f5183dfb 215 */
Kojto 115:87f2f5183dfb 216
Kojto 115:87f2f5183dfb 217 /**
Kojto 115:87f2f5183dfb 218 * @}
Kojto 115:87f2f5183dfb 219 */
Kojto 115:87f2f5183dfb 220
Kojto 115:87f2f5183dfb 221 /* Private constants ---------------------------------------------------------*/
Kojto 115:87f2f5183dfb 222 /** @addtogroup IWDG_Private_Defines
Kojto 115:87f2f5183dfb 223 * @{
Kojto 115:87f2f5183dfb 224 */
Kojto 115:87f2f5183dfb 225 /**
Kojto 115:87f2f5183dfb 226 * @brief IWDG Key Register BitMask
Kojto 115:87f2f5183dfb 227 */
Kojto 115:87f2f5183dfb 228 #define IWDG_KEY_RELOAD ((uint32_t)0x0000AAAA) /*!< IWDG Reload Counter Enable */
Kojto 115:87f2f5183dfb 229 #define IWDG_KEY_ENABLE ((uint32_t)0x0000CCCC) /*!< IWDG Peripheral Enable */
Kojto 115:87f2f5183dfb 230 #define IWDG_KEY_WRITE_ACCESS_ENABLE ((uint32_t)0x00005555) /*!< IWDG KR Write Access Enable */
Kojto 115:87f2f5183dfb 231 #define IWDG_KEY_WRITE_ACCESS_DISABLE ((uint32_t)0x00000000) /*!< IWDG KR Write Access Disable */
Kojto 115:87f2f5183dfb 232
Kojto 115:87f2f5183dfb 233 /**
Kojto 115:87f2f5183dfb 234 * @brief IWDG Flag definition
Kojto 115:87f2f5183dfb 235 */
Kojto 115:87f2f5183dfb 236 #define IWDG_FLAG_PVU ((uint32_t)IWDG_SR_PVU) /*!< Watchdog counter prescaler value update flag */
Kojto 115:87f2f5183dfb 237 #define IWDG_FLAG_RVU ((uint32_t)IWDG_SR_RVU) /*!< Watchdog counter reload value update flag */
Kojto 115:87f2f5183dfb 238 #define IWDG_FLAG_WVU ((uint32_t)IWDG_SR_WVU) /*!< Watchdog counter window value update flag */
Kojto 115:87f2f5183dfb 239
Kojto 115:87f2f5183dfb 240 /**
Kojto 115:87f2f5183dfb 241 * @}
Kojto 115:87f2f5183dfb 242 */
Kojto 115:87f2f5183dfb 243
Kojto 115:87f2f5183dfb 244 /* Private macros ------------------------------------------------------------*/
Kojto 115:87f2f5183dfb 245 /** @defgroup IWDG_Private_Macro IWDG Private Macros
Kojto 115:87f2f5183dfb 246 * @{
Kojto 115:87f2f5183dfb 247 */
Kojto 115:87f2f5183dfb 248 /**
Kojto 115:87f2f5183dfb 249 * @brief Enables write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.
Kojto 115:87f2f5183dfb 250 * @param __HANDLE__: IWDG handle
Kojto 115:87f2f5183dfb 251 * @retval None
Kojto 115:87f2f5183dfb 252 */
Kojto 115:87f2f5183dfb 253 #define IWDG_ENABLE_WRITE_ACCESS(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_ENABLE)
Kojto 115:87f2f5183dfb 254
Kojto 115:87f2f5183dfb 255 /**
Kojto 115:87f2f5183dfb 256 * @brief Disables write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.
Kojto 115:87f2f5183dfb 257 * @param __HANDLE__: IWDG handle
Kojto 115:87f2f5183dfb 258 * @retval None
Kojto 115:87f2f5183dfb 259 */
Kojto 115:87f2f5183dfb 260 #define IWDG_DISABLE_WRITE_ACCESS(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_DISABLE)
Kojto 115:87f2f5183dfb 261
Kojto 115:87f2f5183dfb 262 /**
Kojto 115:87f2f5183dfb 263 * @brief Check IWDG prescaler value.
Kojto 115:87f2f5183dfb 264 * @param __PRESCALER__: IWDG prescaler value
Kojto 115:87f2f5183dfb 265 * @retval None
Kojto 115:87f2f5183dfb 266 */
Kojto 115:87f2f5183dfb 267 #define IS_IWDG_PRESCALER(__PRESCALER__) (((__PRESCALER__) == IWDG_PRESCALER_4) || \
Kojto 115:87f2f5183dfb 268 ((__PRESCALER__) == IWDG_PRESCALER_8) || \
Kojto 115:87f2f5183dfb 269 ((__PRESCALER__) == IWDG_PRESCALER_16) || \
Kojto 115:87f2f5183dfb 270 ((__PRESCALER__) == IWDG_PRESCALER_32) || \
Kojto 115:87f2f5183dfb 271 ((__PRESCALER__) == IWDG_PRESCALER_64) || \
Kojto 115:87f2f5183dfb 272 ((__PRESCALER__) == IWDG_PRESCALER_128)|| \
Kojto 115:87f2f5183dfb 273 ((__PRESCALER__) == IWDG_PRESCALER_256))
Kojto 115:87f2f5183dfb 274
Kojto 115:87f2f5183dfb 275 /**
Kojto 115:87f2f5183dfb 276 * @brief Check IWDG reload value.
Kojto 115:87f2f5183dfb 277 * @param __RELOAD__: IWDG reload value
Kojto 115:87f2f5183dfb 278 * @retval None
Kojto 115:87f2f5183dfb 279 */
Kojto 115:87f2f5183dfb 280 #define IS_IWDG_RELOAD(__RELOAD__) ((__RELOAD__) <= 0xFFF)
Kojto 115:87f2f5183dfb 281
Kojto 115:87f2f5183dfb 282 /**
Kojto 115:87f2f5183dfb 283 * @brief Check IWDG window value.
Kojto 115:87f2f5183dfb 284 * @param __WINDOW__: IWDG window value
Kojto 115:87f2f5183dfb 285 * @retval None
Kojto 115:87f2f5183dfb 286 */
Kojto 115:87f2f5183dfb 287 #define IS_IWDG_WINDOW(__WINDOW__) ((__WINDOW__) <= 0xFFF)
Kojto 115:87f2f5183dfb 288
Kojto 115:87f2f5183dfb 289 /**
Kojto 115:87f2f5183dfb 290 * @}
Kojto 115:87f2f5183dfb 291 */
Kojto 115:87f2f5183dfb 292
Kojto 115:87f2f5183dfb 293 /**
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
Kojto 115:87f2f5183dfb 302 #ifdef __cplusplus
Kojto 115:87f2f5183dfb 303 }
Kojto 115:87f2f5183dfb 304 #endif
Kojto 115:87f2f5183dfb 305
Kojto 115:87f2f5183dfb 306 #endif /* __STM32F7xx_HAL_IWDG_H */
Kojto 115:87f2f5183dfb 307
Kojto 115:87f2f5183dfb 308 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/