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