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