mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Fri Aug 14 13:15:17 2015 +0100
Revision:
610:813dcc80987e
Parent:
573:ad23fe03a082
Synchronized with git revision 6d84db41c6833e0b9b024741eb0616a5f62d5599

Full URL: https://github.com/mbedmicro/mbed/commit/6d84db41c6833e0b9b024741eb0616a5f62d5599/

DISCO_F746NG - Improvements

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 573:ad23fe03a082 1 /**
mbed_official 573:ad23fe03a082 2 ******************************************************************************
mbed_official 573:ad23fe03a082 3 * @file stm32f7xx_hal_iwdg.h
mbed_official 573:ad23fe03a082 4 * @author MCD Application Team
mbed_official 610:813dcc80987e 5 * @version V1.0.1
mbed_official 610:813dcc80987e 6 * @date 25-June-2015
mbed_official 573:ad23fe03a082 7 * @brief Header file of IWDG HAL module.
mbed_official 573:ad23fe03a082 8 ******************************************************************************
mbed_official 573:ad23fe03a082 9 * @attention
mbed_official 573:ad23fe03a082 10 *
mbed_official 573:ad23fe03a082 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 573:ad23fe03a082 12 *
mbed_official 573:ad23fe03a082 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 573:ad23fe03a082 14 * are permitted provided that the following conditions are met:
mbed_official 573:ad23fe03a082 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 573:ad23fe03a082 16 * this list of conditions and the following disclaimer.
mbed_official 573:ad23fe03a082 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 573:ad23fe03a082 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 573:ad23fe03a082 19 * and/or other materials provided with the distribution.
mbed_official 573:ad23fe03a082 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 573:ad23fe03a082 21 * may be used to endorse or promote products derived from this software
mbed_official 573:ad23fe03a082 22 * without specific prior written permission.
mbed_official 573:ad23fe03a082 23 *
mbed_official 573:ad23fe03a082 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 573:ad23fe03a082 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 573:ad23fe03a082 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 573:ad23fe03a082 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 573:ad23fe03a082 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 573:ad23fe03a082 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 573:ad23fe03a082 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 573:ad23fe03a082 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 573:ad23fe03a082 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 573:ad23fe03a082 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 573:ad23fe03a082 34 *
mbed_official 573:ad23fe03a082 35 ******************************************************************************
mbed_official 573:ad23fe03a082 36 */
mbed_official 573:ad23fe03a082 37
mbed_official 573:ad23fe03a082 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 573:ad23fe03a082 39 #ifndef __STM32F7xx_HAL_IWDG_H
mbed_official 573:ad23fe03a082 40 #define __STM32F7xx_HAL_IWDG_H
mbed_official 573:ad23fe03a082 41
mbed_official 573:ad23fe03a082 42 #ifdef __cplusplus
mbed_official 573:ad23fe03a082 43 extern "C" {
mbed_official 573:ad23fe03a082 44 #endif
mbed_official 573:ad23fe03a082 45
mbed_official 573:ad23fe03a082 46 /* Includes ------------------------------------------------------------------*/
mbed_official 573:ad23fe03a082 47 #include "stm32f7xx_hal_def.h"
mbed_official 573:ad23fe03a082 48
mbed_official 573:ad23fe03a082 49 /** @addtogroup STM32F7xx_HAL_Driver
mbed_official 573:ad23fe03a082 50 * @{
mbed_official 573:ad23fe03a082 51 */
mbed_official 573:ad23fe03a082 52
mbed_official 573:ad23fe03a082 53 /** @addtogroup IWDG
mbed_official 573:ad23fe03a082 54 * @{
mbed_official 573:ad23fe03a082 55 */
mbed_official 573:ad23fe03a082 56
mbed_official 573:ad23fe03a082 57 /* Exported types ------------------------------------------------------------*/
mbed_official 573:ad23fe03a082 58 /** @defgroup IWDG_Exported_Types IWDG Exported Types
mbed_official 573:ad23fe03a082 59 * @{
mbed_official 573:ad23fe03a082 60 */
mbed_official 573:ad23fe03a082 61
mbed_official 573:ad23fe03a082 62 /**
mbed_official 573:ad23fe03a082 63 * @brief IWDG HAL State Structure definition
mbed_official 573:ad23fe03a082 64 */
mbed_official 573:ad23fe03a082 65 typedef enum
mbed_official 573:ad23fe03a082 66 {
mbed_official 573:ad23fe03a082 67 HAL_IWDG_STATE_RESET = 0x00, /*!< IWDG not yet initialized or disabled */
mbed_official 573:ad23fe03a082 68 HAL_IWDG_STATE_READY = 0x01, /*!< IWDG initialized and ready for use */
mbed_official 573:ad23fe03a082 69 HAL_IWDG_STATE_BUSY = 0x02, /*!< IWDG internal process is ongoing */
mbed_official 573:ad23fe03a082 70 HAL_IWDG_STATE_TIMEOUT = 0x03, /*!< IWDG timeout state */
mbed_official 573:ad23fe03a082 71 HAL_IWDG_STATE_ERROR = 0x04 /*!< IWDG error state */
mbed_official 573:ad23fe03a082 72
mbed_official 573:ad23fe03a082 73 }HAL_IWDG_StateTypeDef;
mbed_official 573:ad23fe03a082 74
mbed_official 573:ad23fe03a082 75 /**
mbed_official 573:ad23fe03a082 76 * @brief IWDG Init structure definition
mbed_official 573:ad23fe03a082 77 */
mbed_official 573:ad23fe03a082 78 typedef struct
mbed_official 573:ad23fe03a082 79 {
mbed_official 573:ad23fe03a082 80 uint32_t Prescaler; /*!< Select the prescaler of the IWDG.
mbed_official 573:ad23fe03a082 81 This parameter can be a value of @ref IWDG_Prescaler */
mbed_official 573:ad23fe03a082 82
mbed_official 573:ad23fe03a082 83 uint32_t Reload; /*!< Specifies the IWDG down-counter reload value.
mbed_official 573:ad23fe03a082 84 This parameter must be a number between Min_Data = 0 and Max_Data = 0x0FFF */
mbed_official 573:ad23fe03a082 85
mbed_official 573:ad23fe03a082 86 uint32_t Window; /*!< Specifies the window value to be compared to the down-counter.
mbed_official 573:ad23fe03a082 87 This parameter must be a number between Min_Data = 0 and Max_Data = 0x0FFF */
mbed_official 573:ad23fe03a082 88
mbed_official 573:ad23fe03a082 89 } IWDG_InitTypeDef;
mbed_official 573:ad23fe03a082 90
mbed_official 573:ad23fe03a082 91 /**
mbed_official 573:ad23fe03a082 92 * @brief IWDG Handle Structure definition
mbed_official 573:ad23fe03a082 93 */
mbed_official 573:ad23fe03a082 94 typedef struct
mbed_official 573:ad23fe03a082 95 {
mbed_official 573:ad23fe03a082 96 IWDG_TypeDef *Instance; /*!< Register base address */
mbed_official 573:ad23fe03a082 97
mbed_official 573:ad23fe03a082 98 IWDG_InitTypeDef Init; /*!< IWDG required parameters */
mbed_official 573:ad23fe03a082 99
mbed_official 573:ad23fe03a082 100 HAL_LockTypeDef Lock; /*!< IWDG Locking object */
mbed_official 573:ad23fe03a082 101
mbed_official 573:ad23fe03a082 102 __IO HAL_IWDG_StateTypeDef State; /*!< IWDG communication state */
mbed_official 573:ad23fe03a082 103
mbed_official 573:ad23fe03a082 104 }IWDG_HandleTypeDef;
mbed_official 573:ad23fe03a082 105
mbed_official 573:ad23fe03a082 106 /**
mbed_official 573:ad23fe03a082 107 * @}
mbed_official 573:ad23fe03a082 108 */
mbed_official 573:ad23fe03a082 109
mbed_official 573:ad23fe03a082 110 /* Exported constants --------------------------------------------------------*/
mbed_official 573:ad23fe03a082 111 /** @defgroup IWDG_Exported_Constants IWDG Exported Constants
mbed_official 573:ad23fe03a082 112 * @{
mbed_official 573:ad23fe03a082 113 */
mbed_official 573:ad23fe03a082 114
mbed_official 573:ad23fe03a082 115 /** @defgroup IWDG_Prescaler IWDG Prescaler
mbed_official 573:ad23fe03a082 116 * @{
mbed_official 573:ad23fe03a082 117 */
mbed_official 573:ad23fe03a082 118 #define IWDG_PRESCALER_4 ((uint8_t)0x00) /*!< IWDG prescaler set to 4 */
mbed_official 573:ad23fe03a082 119 #define IWDG_PRESCALER_8 ((uint8_t)(IWDG_PR_PR_0)) /*!< IWDG prescaler set to 8 */
mbed_official 573:ad23fe03a082 120 #define IWDG_PRESCALER_16 ((uint8_t)(IWDG_PR_PR_1)) /*!< IWDG prescaler set to 16 */
mbed_official 573:ad23fe03a082 121 #define IWDG_PRESCALER_32 ((uint8_t)(IWDG_PR_PR_1 | IWDG_PR_PR_0)) /*!< IWDG prescaler set to 32 */
mbed_official 573:ad23fe03a082 122 #define IWDG_PRESCALER_64 ((uint8_t)(IWDG_PR_PR_2)) /*!< IWDG prescaler set to 64 */
mbed_official 573:ad23fe03a082 123 #define IWDG_PRESCALER_128 ((uint8_t)(IWDG_PR_PR_2 | IWDG_PR_PR_0)) /*!< IWDG prescaler set to 128 */
mbed_official 573:ad23fe03a082 124 #define IWDG_PRESCALER_256 ((uint8_t)(IWDG_PR_PR_2 | IWDG_PR_PR_1)) /*!< IWDG prescaler set to 256 */
mbed_official 573:ad23fe03a082 125 /**
mbed_official 573:ad23fe03a082 126 * @}
mbed_official 573:ad23fe03a082 127 */
mbed_official 573:ad23fe03a082 128
mbed_official 573:ad23fe03a082 129 /** @defgroup IWDG_Window IWDG Window
mbed_official 573:ad23fe03a082 130 * @{
mbed_official 573:ad23fe03a082 131 */
mbed_official 573:ad23fe03a082 132 #define IWDG_WINDOW_DISABLE ((uint32_t)0x00000FFF)
mbed_official 573:ad23fe03a082 133 /**
mbed_official 573:ad23fe03a082 134 * @}
mbed_official 573:ad23fe03a082 135 */
mbed_official 573:ad23fe03a082 136
mbed_official 573:ad23fe03a082 137 /**
mbed_official 573:ad23fe03a082 138 * @}
mbed_official 573:ad23fe03a082 139 */
mbed_official 573:ad23fe03a082 140
mbed_official 573:ad23fe03a082 141 /* Exported macros -----------------------------------------------------------*/
mbed_official 573:ad23fe03a082 142 /** @defgroup IWDG_Exported_Macros IWDG Exported Macros
mbed_official 573:ad23fe03a082 143 * @{
mbed_official 573:ad23fe03a082 144 */
mbed_official 573:ad23fe03a082 145
mbed_official 573:ad23fe03a082 146 /** @brief Reset IWDG handle state
mbed_official 573:ad23fe03a082 147 * @param __HANDLE__: IWDG handle.
mbed_official 573:ad23fe03a082 148 * @retval None
mbed_official 573:ad23fe03a082 149 */
mbed_official 573:ad23fe03a082 150 #define __HAL_IWDG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_IWDG_STATE_RESET)
mbed_official 573:ad23fe03a082 151
mbed_official 573:ad23fe03a082 152 /**
mbed_official 573:ad23fe03a082 153 * @brief Enables the IWDG peripheral.
mbed_official 573:ad23fe03a082 154 * @param __HANDLE__: IWDG handle
mbed_official 573:ad23fe03a082 155 * @retval None
mbed_official 573:ad23fe03a082 156 */
mbed_official 573:ad23fe03a082 157 #define __HAL_IWDG_START(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_ENABLE)
mbed_official 573:ad23fe03a082 158
mbed_official 573:ad23fe03a082 159 /**
mbed_official 573:ad23fe03a082 160 * @brief Reloads IWDG counter with value defined in the reload register
mbed_official 573:ad23fe03a082 161 * (write access to IWDG_PR and IWDG_RLR registers disabled).
mbed_official 573:ad23fe03a082 162 * @param __HANDLE__: IWDG handle
mbed_official 573:ad23fe03a082 163 * @retval None
mbed_official 573:ad23fe03a082 164 */
mbed_official 573:ad23fe03a082 165 #define __HAL_IWDG_RELOAD_COUNTER(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_RELOAD)
mbed_official 573:ad23fe03a082 166
mbed_official 573:ad23fe03a082 167 /**
mbed_official 573:ad23fe03a082 168 * @brief Gets the selected IWDG's flag status.
mbed_official 573:ad23fe03a082 169 * @param __HANDLE__: IWDG handle
mbed_official 573:ad23fe03a082 170 * @param __FLAG__: specifies the flag to check.
mbed_official 573:ad23fe03a082 171 * This parameter can be one of the following values:
mbed_official 573:ad23fe03a082 172 * @arg IWDG_FLAG_PVU: Watchdog counter reload value update flag
mbed_official 573:ad23fe03a082 173 * @arg IWDG_FLAG_RVU: Watchdog counter prescaler value flag
mbed_official 573:ad23fe03a082 174 * @arg IWDG_FLAG_WVU: Watchdog counter window value flag
mbed_official 573:ad23fe03a082 175 * @retval The new state of __FLAG__ (TRUE or FALSE) .
mbed_official 573:ad23fe03a082 176 */
mbed_official 573:ad23fe03a082 177 #define __HAL_IWDG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
mbed_official 573:ad23fe03a082 178
mbed_official 573:ad23fe03a082 179 /**
mbed_official 573:ad23fe03a082 180 * @}
mbed_official 573:ad23fe03a082 181 */
mbed_official 573:ad23fe03a082 182
mbed_official 573:ad23fe03a082 183 /* Exported functions --------------------------------------------------------*/
mbed_official 573:ad23fe03a082 184 /** @addtogroup IWDG_Exported_Functions
mbed_official 573:ad23fe03a082 185 * @{
mbed_official 573:ad23fe03a082 186 */
mbed_official 573:ad23fe03a082 187
mbed_official 573:ad23fe03a082 188 /** @addtogroup IWDG_Exported_Functions_Group1
mbed_official 573:ad23fe03a082 189 * @{
mbed_official 573:ad23fe03a082 190 */
mbed_official 573:ad23fe03a082 191 /* Initialization/de-initialization functions ********************************/
mbed_official 573:ad23fe03a082 192 HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg);
mbed_official 573:ad23fe03a082 193 void HAL_IWDG_MspInit(IWDG_HandleTypeDef *hiwdg);
mbed_official 573:ad23fe03a082 194 /**
mbed_official 573:ad23fe03a082 195 * @}
mbed_official 573:ad23fe03a082 196 */
mbed_official 573:ad23fe03a082 197
mbed_official 573:ad23fe03a082 198 /** @addtogroup IWDG_Exported_Functions_Group2
mbed_official 573:ad23fe03a082 199 * @{
mbed_official 573:ad23fe03a082 200 */
mbed_official 573:ad23fe03a082 201 /* I/O operation functions ****************************************************/
mbed_official 573:ad23fe03a082 202 HAL_StatusTypeDef HAL_IWDG_Start(IWDG_HandleTypeDef *hiwdg);
mbed_official 573:ad23fe03a082 203 HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg);
mbed_official 573:ad23fe03a082 204 /**
mbed_official 573:ad23fe03a082 205 * @}
mbed_official 573:ad23fe03a082 206 */
mbed_official 573:ad23fe03a082 207
mbed_official 573:ad23fe03a082 208 /** @addtogroup IWDG_Exported_Functions_Group3
mbed_official 573:ad23fe03a082 209 * @{
mbed_official 573:ad23fe03a082 210 */
mbed_official 573:ad23fe03a082 211 /* Peripheral State functions ************************************************/
mbed_official 573:ad23fe03a082 212 HAL_IWDG_StateTypeDef HAL_IWDG_GetState(IWDG_HandleTypeDef *hiwdg);
mbed_official 573:ad23fe03a082 213 /**
mbed_official 573:ad23fe03a082 214 * @}
mbed_official 573:ad23fe03a082 215 */
mbed_official 573:ad23fe03a082 216
mbed_official 573:ad23fe03a082 217 /**
mbed_official 573:ad23fe03a082 218 * @}
mbed_official 573:ad23fe03a082 219 */
mbed_official 573:ad23fe03a082 220
mbed_official 573:ad23fe03a082 221 /* Private constants ---------------------------------------------------------*/
mbed_official 573:ad23fe03a082 222 /** @addtogroup IWDG_Private_Defines
mbed_official 573:ad23fe03a082 223 * @{
mbed_official 573:ad23fe03a082 224 */
mbed_official 573:ad23fe03a082 225 /**
mbed_official 573:ad23fe03a082 226 * @brief IWDG Key Register BitMask
mbed_official 573:ad23fe03a082 227 */
mbed_official 573:ad23fe03a082 228 #define IWDG_KEY_RELOAD ((uint32_t)0x0000AAAA) /*!< IWDG Reload Counter Enable */
mbed_official 573:ad23fe03a082 229 #define IWDG_KEY_ENABLE ((uint32_t)0x0000CCCC) /*!< IWDG Peripheral Enable */
mbed_official 573:ad23fe03a082 230 #define IWDG_KEY_WRITE_ACCESS_ENABLE ((uint32_t)0x00005555) /*!< IWDG KR Write Access Enable */
mbed_official 573:ad23fe03a082 231 #define IWDG_KEY_WRITE_ACCESS_DISABLE ((uint32_t)0x00000000) /*!< IWDG KR Write Access Disable */
mbed_official 573:ad23fe03a082 232
mbed_official 573:ad23fe03a082 233 /**
mbed_official 573:ad23fe03a082 234 * @brief IWDG Flag definition
mbed_official 573:ad23fe03a082 235 */
mbed_official 573:ad23fe03a082 236 #define IWDG_FLAG_PVU ((uint32_t)IWDG_SR_PVU) /*!< Watchdog counter prescaler value update flag */
mbed_official 573:ad23fe03a082 237 #define IWDG_FLAG_RVU ((uint32_t)IWDG_SR_RVU) /*!< Watchdog counter reload value update flag */
mbed_official 573:ad23fe03a082 238 #define IWDG_FLAG_WVU ((uint32_t)IWDG_SR_WVU) /*!< Watchdog counter window value update flag */
mbed_official 573:ad23fe03a082 239
mbed_official 573:ad23fe03a082 240 /**
mbed_official 573:ad23fe03a082 241 * @}
mbed_official 573:ad23fe03a082 242 */
mbed_official 573:ad23fe03a082 243
mbed_official 573:ad23fe03a082 244 /* Private macros ------------------------------------------------------------*/
mbed_official 573:ad23fe03a082 245 /** @defgroup IWDG_Private_Macro IWDG Private Macros
mbed_official 573:ad23fe03a082 246 * @{
mbed_official 573:ad23fe03a082 247 */
mbed_official 573:ad23fe03a082 248 /**
mbed_official 573:ad23fe03a082 249 * @brief Enables write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.
mbed_official 573:ad23fe03a082 250 * @param __HANDLE__: IWDG handle
mbed_official 573:ad23fe03a082 251 * @retval None
mbed_official 573:ad23fe03a082 252 */
mbed_official 573:ad23fe03a082 253 #define IWDG_ENABLE_WRITE_ACCESS(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_ENABLE)
mbed_official 573:ad23fe03a082 254
mbed_official 573:ad23fe03a082 255 /**
mbed_official 573:ad23fe03a082 256 * @brief Disables write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.
mbed_official 573:ad23fe03a082 257 * @param __HANDLE__: IWDG handle
mbed_official 573:ad23fe03a082 258 * @retval None
mbed_official 573:ad23fe03a082 259 */
mbed_official 573:ad23fe03a082 260 #define IWDG_DISABLE_WRITE_ACCESS(__HANDLE__) WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_DISABLE)
mbed_official 573:ad23fe03a082 261
mbed_official 573:ad23fe03a082 262 /**
mbed_official 573:ad23fe03a082 263 * @brief Check IWDG prescaler value.
mbed_official 573:ad23fe03a082 264 * @param __PRESCALER__: IWDG prescaler value
mbed_official 573:ad23fe03a082 265 * @retval None
mbed_official 573:ad23fe03a082 266 */
mbed_official 573:ad23fe03a082 267 #define IS_IWDG_PRESCALER(__PRESCALER__) (((__PRESCALER__) == IWDG_PRESCALER_4) || \
mbed_official 573:ad23fe03a082 268 ((__PRESCALER__) == IWDG_PRESCALER_8) || \
mbed_official 573:ad23fe03a082 269 ((__PRESCALER__) == IWDG_PRESCALER_16) || \
mbed_official 573:ad23fe03a082 270 ((__PRESCALER__) == IWDG_PRESCALER_32) || \
mbed_official 573:ad23fe03a082 271 ((__PRESCALER__) == IWDG_PRESCALER_64) || \
mbed_official 573:ad23fe03a082 272 ((__PRESCALER__) == IWDG_PRESCALER_128)|| \
mbed_official 573:ad23fe03a082 273 ((__PRESCALER__) == IWDG_PRESCALER_256))
mbed_official 573:ad23fe03a082 274
mbed_official 573:ad23fe03a082 275 /**
mbed_official 573:ad23fe03a082 276 * @brief Check IWDG reload value.
mbed_official 573:ad23fe03a082 277 * @param __RELOAD__: IWDG reload value
mbed_official 573:ad23fe03a082 278 * @retval None
mbed_official 573:ad23fe03a082 279 */
mbed_official 573:ad23fe03a082 280 #define IS_IWDG_RELOAD(__RELOAD__) ((__RELOAD__) <= 0xFFF)
mbed_official 573:ad23fe03a082 281
mbed_official 573:ad23fe03a082 282 /**
mbed_official 573:ad23fe03a082 283 * @brief Check IWDG window value.
mbed_official 573:ad23fe03a082 284 * @param __WINDOW__: IWDG window value
mbed_official 573:ad23fe03a082 285 * @retval None
mbed_official 573:ad23fe03a082 286 */
mbed_official 573:ad23fe03a082 287 #define IS_IWDG_WINDOW(__WINDOW__) ((__WINDOW__) <= 0xFFF)
mbed_official 573:ad23fe03a082 288
mbed_official 573:ad23fe03a082 289 /**
mbed_official 573:ad23fe03a082 290 * @}
mbed_official 573:ad23fe03a082 291 */
mbed_official 573:ad23fe03a082 292
mbed_official 573:ad23fe03a082 293 /**
mbed_official 573:ad23fe03a082 294 * @}
mbed_official 573:ad23fe03a082 295 */
mbed_official 573:ad23fe03a082 296
mbed_official 573:ad23fe03a082 297 /**
mbed_official 573:ad23fe03a082 298 * @}
mbed_official 573:ad23fe03a082 299 */
mbed_official 573:ad23fe03a082 300
mbed_official 573:ad23fe03a082 301
mbed_official 573:ad23fe03a082 302 #ifdef __cplusplus
mbed_official 573:ad23fe03a082 303 }
mbed_official 573:ad23fe03a082 304 #endif
mbed_official 573:ad23fe03a082 305
mbed_official 573:ad23fe03a082 306 #endif /* __STM32F7xx_HAL_IWDG_H */
mbed_official 573:ad23fe03a082 307
mbed_official 573:ad23fe03a082 308 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/