mbed library sources

Fork of mbed-src by mbed official

Committer:
moirans2
Date:
Wed Jan 14 20:53:08 2015 +0000
Revision:
445:9a3ffe6cfa19
Parent:
441:d2c15dda23c1
internal clock stm32L051

Who changed what in which revision?

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