mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.h@590:0835b0fc9a03, 2015-07-14 (annotated)
- Committer:
- SteveKim
- Date:
- Tue Jul 14 10:20:51 2015 +0000
- Revision:
- 590:0835b0fc9a03
- Parent:
- 394:83f921546702
.
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_wwdg.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 WWDG 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_WWDG_H |
mbed_official | 354:e67efb2aab0e | 40 | #define __STM32L1xx_HAL_WWDG_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 WWDG |
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 WWDG_Exported_Types WWDG 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 WWDG 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_WWDG_STATE_RESET = 0x00, /*!< WWDG not yet initialized or disabled */ |
mbed_official | 354:e67efb2aab0e | 69 | HAL_WWDG_STATE_READY = 0x01, /*!< WWDG initialized and ready for use */ |
mbed_official | 354:e67efb2aab0e | 70 | HAL_WWDG_STATE_BUSY = 0x02, /*!< WWDG internal process is ongoing */ |
mbed_official | 354:e67efb2aab0e | 71 | HAL_WWDG_STATE_TIMEOUT = 0x03, /*!< WWDG timeout state */ |
mbed_official | 354:e67efb2aab0e | 72 | HAL_WWDG_STATE_ERROR = 0x04 /*!< WWDG error state */ |
mbed_official | 354:e67efb2aab0e | 73 | }HAL_WWDG_StateTypeDef; |
mbed_official | 354:e67efb2aab0e | 74 | |
mbed_official | 354:e67efb2aab0e | 75 | /** |
mbed_official | 354:e67efb2aab0e | 76 | * @brief WWDG Init structure definition |
mbed_official | 354:e67efb2aab0e | 77 | */ |
mbed_official | 354:e67efb2aab0e | 78 | typedef struct |
mbed_official | 354:e67efb2aab0e | 79 | { |
mbed_official | 354:e67efb2aab0e | 80 | uint32_t Prescaler; /*!< Specifies the prescaler value of the WWDG. |
mbed_official | 354:e67efb2aab0e | 81 | This parameter can be a value of @ref WWDG_Prescaler */ |
mbed_official | 354:e67efb2aab0e | 82 | |
mbed_official | 354:e67efb2aab0e | 83 | uint32_t Window; /*!< Specifies the WWDG window value to be compared to the downcounter. |
mbed_official | 354:e67efb2aab0e | 84 | This parameter must be a number lower than Max_Data = 0x80 */ |
mbed_official | 354:e67efb2aab0e | 85 | |
mbed_official | 354:e67efb2aab0e | 86 | uint32_t Counter; /*!< Specifies the WWDG free-running downcounter value. |
mbed_official | 354:e67efb2aab0e | 87 | This parameter must be a number between Min_Data = 0x40 and Max_Data = 0x7F */ |
mbed_official | 354:e67efb2aab0e | 88 | |
mbed_official | 354:e67efb2aab0e | 89 | }WWDG_InitTypeDef; |
mbed_official | 354:e67efb2aab0e | 90 | |
mbed_official | 354:e67efb2aab0e | 91 | /** |
mbed_official | 354:e67efb2aab0e | 92 | * @brief WWDG handle Structure definition |
mbed_official | 354:e67efb2aab0e | 93 | */ |
mbed_official | 354:e67efb2aab0e | 94 | typedef struct |
mbed_official | 354:e67efb2aab0e | 95 | { |
mbed_official | 354:e67efb2aab0e | 96 | WWDG_TypeDef *Instance; /*!< Register base address */ |
mbed_official | 354:e67efb2aab0e | 97 | |
mbed_official | 354:e67efb2aab0e | 98 | WWDG_InitTypeDef Init; /*!< WWDG required parameters */ |
mbed_official | 354:e67efb2aab0e | 99 | |
mbed_official | 354:e67efb2aab0e | 100 | HAL_LockTypeDef Lock; /*!< WWDG locking object */ |
mbed_official | 354:e67efb2aab0e | 101 | |
mbed_official | 354:e67efb2aab0e | 102 | __IO HAL_WWDG_StateTypeDef State; /*!< WWDG communication state */ |
mbed_official | 354:e67efb2aab0e | 103 | |
mbed_official | 354:e67efb2aab0e | 104 | }WWDG_HandleTypeDef; |
mbed_official | 354:e67efb2aab0e | 105 | |
mbed_official | 354:e67efb2aab0e | 106 | /** |
mbed_official | 354:e67efb2aab0e | 107 | * @} |
mbed_official | 354:e67efb2aab0e | 108 | */ |
mbed_official | 354:e67efb2aab0e | 109 | |
mbed_official | 354:e67efb2aab0e | 110 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 354:e67efb2aab0e | 111 | |
mbed_official | 354:e67efb2aab0e | 112 | /** @defgroup WWDG_Exported_Constants WWDG Exported Constants |
mbed_official | 354:e67efb2aab0e | 113 | * @{ |
mbed_official | 354:e67efb2aab0e | 114 | */ |
mbed_official | 354:e67efb2aab0e | 115 | |
mbed_official | 354:e67efb2aab0e | 116 | /** @defgroup WWDG_BitAddress_AliasRegion WWDG BitAddress AliasRegion |
mbed_official | 354:e67efb2aab0e | 117 | * @brief WWDG registers bit address in the alias region |
mbed_official | 354:e67efb2aab0e | 118 | * @{ |
mbed_official | 354:e67efb2aab0e | 119 | */ |
mbed_official | 354:e67efb2aab0e | 120 | |
mbed_official | 354:e67efb2aab0e | 121 | /* --- CFR Register ---*/ |
mbed_official | 354:e67efb2aab0e | 122 | /* Alias word address of EWI bit */ |
mbed_official | 354:e67efb2aab0e | 123 | #define CFR_BASE (uint32_t)(WWDG_BASE + 0x04) |
mbed_official | 354:e67efb2aab0e | 124 | |
mbed_official | 354:e67efb2aab0e | 125 | /** |
mbed_official | 354:e67efb2aab0e | 126 | * @} |
mbed_official | 354:e67efb2aab0e | 127 | */ |
mbed_official | 354:e67efb2aab0e | 128 | |
mbed_official | 354:e67efb2aab0e | 129 | /** @defgroup WWDG_Interrupt_definition WWDG Interrupt definition |
mbed_official | 354:e67efb2aab0e | 130 | * @{ |
mbed_official | 354:e67efb2aab0e | 131 | */ |
mbed_official | 354:e67efb2aab0e | 132 | #define WWDG_IT_EWI ((uint32_t)WWDG_CFR_EWI) |
mbed_official | 354:e67efb2aab0e | 133 | |
mbed_official | 354:e67efb2aab0e | 134 | /** |
mbed_official | 354:e67efb2aab0e | 135 | * @} |
mbed_official | 354:e67efb2aab0e | 136 | */ |
mbed_official | 354:e67efb2aab0e | 137 | |
mbed_official | 354:e67efb2aab0e | 138 | /** @defgroup WWDG_Flag_definition WWDG Flag definition |
mbed_official | 354:e67efb2aab0e | 139 | * @brief WWDG Flag definition |
mbed_official | 354:e67efb2aab0e | 140 | * @{ |
mbed_official | 354:e67efb2aab0e | 141 | */ |
mbed_official | 354:e67efb2aab0e | 142 | #define WWDG_FLAG_EWIF ((uint32_t)WWDG_SR_EWIF) /*!< Early wakeup interrupt flag */ |
mbed_official | 354:e67efb2aab0e | 143 | |
mbed_official | 354:e67efb2aab0e | 144 | /** |
mbed_official | 354:e67efb2aab0e | 145 | * @} |
mbed_official | 354:e67efb2aab0e | 146 | */ |
mbed_official | 354:e67efb2aab0e | 147 | |
mbed_official | 354:e67efb2aab0e | 148 | /** @defgroup WWDG_Prescaler WWDG Prescaler |
mbed_official | 354:e67efb2aab0e | 149 | * @{ |
mbed_official | 354:e67efb2aab0e | 150 | */ |
mbed_official | 354:e67efb2aab0e | 151 | #define WWDG_PRESCALER_1 ((uint32_t)0x00000000) /*!< WWDG counter clock = (PCLK1/4096)/1 */ |
mbed_official | 354:e67efb2aab0e | 152 | #define WWDG_PRESCALER_2 ((uint32_t)WWDG_CFR_WDGTB0) /*!< WWDG counter clock = (PCLK1/4096)/2 */ |
mbed_official | 354:e67efb2aab0e | 153 | #define WWDG_PRESCALER_4 ((uint32_t)WWDG_CFR_WDGTB1) /*!< WWDG counter clock = (PCLK1/4096)/4 */ |
mbed_official | 354:e67efb2aab0e | 154 | #define WWDG_PRESCALER_8 ((uint32_t)WWDG_CFR_WDGTB) /*!< WWDG counter clock = (PCLK1/4096)/8 */ |
mbed_official | 354:e67efb2aab0e | 155 | |
mbed_official | 354:e67efb2aab0e | 156 | #define IS_WWDG_PRESCALER(__PRESCALER__) (((__PRESCALER__) == WWDG_PRESCALER_1) || \ |
mbed_official | 354:e67efb2aab0e | 157 | ((__PRESCALER__) == WWDG_PRESCALER_2) || \ |
mbed_official | 354:e67efb2aab0e | 158 | ((__PRESCALER__) == WWDG_PRESCALER_4) || \ |
mbed_official | 354:e67efb2aab0e | 159 | ((__PRESCALER__) == WWDG_PRESCALER_8)) |
mbed_official | 354:e67efb2aab0e | 160 | |
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 | /** @defgroup WWDG_Window WWDG Window |
mbed_official | 354:e67efb2aab0e | 166 | * @{ |
mbed_official | 354:e67efb2aab0e | 167 | */ |
mbed_official | 354:e67efb2aab0e | 168 | #define IS_WWDG_WINDOW(__WINDOW__) ((__WINDOW__) <= 0x7F) |
mbed_official | 354:e67efb2aab0e | 169 | |
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 | /** @defgroup WWDG_Counter WWDG Counter |
mbed_official | 354:e67efb2aab0e | 175 | * @{ |
mbed_official | 354:e67efb2aab0e | 176 | */ |
mbed_official | 354:e67efb2aab0e | 177 | #define IS_WWDG_COUNTER(__COUNTER__) (((__COUNTER__) >= 0x40) && ((__COUNTER__) <= 0x7F)) |
mbed_official | 354:e67efb2aab0e | 178 | |
mbed_official | 354:e67efb2aab0e | 179 | /** |
mbed_official | 354:e67efb2aab0e | 180 | * @} |
mbed_official | 354:e67efb2aab0e | 181 | */ |
mbed_official | 354:e67efb2aab0e | 182 | |
mbed_official | 354:e67efb2aab0e | 183 | /** |
mbed_official | 354:e67efb2aab0e | 184 | * @} |
mbed_official | 354:e67efb2aab0e | 185 | */ |
mbed_official | 354:e67efb2aab0e | 186 | |
mbed_official | 354:e67efb2aab0e | 187 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 354:e67efb2aab0e | 188 | |
mbed_official | 354:e67efb2aab0e | 189 | /** @defgroup WWDG_Exported_Macros WWDG Exported Macros |
mbed_official | 354:e67efb2aab0e | 190 | * @{ |
mbed_official | 354:e67efb2aab0e | 191 | */ |
mbed_official | 354:e67efb2aab0e | 192 | |
mbed_official | 354:e67efb2aab0e | 193 | /** @brief Reset WWDG handle state |
mbed_official | 354:e67efb2aab0e | 194 | * @param __HANDLE__: WWDG handle |
mbed_official | 354:e67efb2aab0e | 195 | * @retval None |
mbed_official | 354:e67efb2aab0e | 196 | */ |
mbed_official | 354:e67efb2aab0e | 197 | #define __HAL_WWDG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_WWDG_STATE_RESET) |
mbed_official | 354:e67efb2aab0e | 198 | |
mbed_official | 354:e67efb2aab0e | 199 | /** |
mbed_official | 354:e67efb2aab0e | 200 | * @brief Enables the WWDG peripheral. |
mbed_official | 354:e67efb2aab0e | 201 | * @param __HANDLE__: WWDG handle |
mbed_official | 354:e67efb2aab0e | 202 | * @retval None |
mbed_official | 354:e67efb2aab0e | 203 | */ |
mbed_official | 354:e67efb2aab0e | 204 | #define __HAL_WWDG_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA) |
mbed_official | 354:e67efb2aab0e | 205 | |
mbed_official | 354:e67efb2aab0e | 206 | /** |
mbed_official | 354:e67efb2aab0e | 207 | * @brief Gets the selected WWDG's flag status. |
mbed_official | 354:e67efb2aab0e | 208 | * @param __HANDLE__: WWDG handle |
mbed_official | 354:e67efb2aab0e | 209 | * @param __FLAG__: specifies the flag to check. |
mbed_official | 354:e67efb2aab0e | 210 | * This parameter can be one of the following values: |
mbed_official | 354:e67efb2aab0e | 211 | * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag |
mbed_official | 354:e67efb2aab0e | 212 | * @retval The new state of WWDG_FLAG (SET or RESET). |
mbed_official | 354:e67efb2aab0e | 213 | */ |
mbed_official | 354:e67efb2aab0e | 214 | #define __HAL_WWDG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
mbed_official | 354:e67efb2aab0e | 215 | |
mbed_official | 354:e67efb2aab0e | 216 | /** |
mbed_official | 354:e67efb2aab0e | 217 | * @brief Clears the WWDG's pending flags. |
mbed_official | 354:e67efb2aab0e | 218 | * @param __HANDLE__: WWDG handle |
mbed_official | 354:e67efb2aab0e | 219 | * @param __FLAG__: specifies the flag to clear. |
mbed_official | 354:e67efb2aab0e | 220 | * This parameter can be one of the following values: |
mbed_official | 354:e67efb2aab0e | 221 | * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag |
mbed_official | 354:e67efb2aab0e | 222 | * @retval None |
mbed_official | 354:e67efb2aab0e | 223 | */ |
mbed_official | 354:e67efb2aab0e | 224 | #define __HAL_WWDG_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = ~(__FLAG__)) |
mbed_official | 354:e67efb2aab0e | 225 | |
mbed_official | 354:e67efb2aab0e | 226 | /** |
mbed_official | 354:e67efb2aab0e | 227 | * @brief Enables the WWDG early wakeup interrupt. |
mbed_official | 354:e67efb2aab0e | 228 | * @param __INTERRUPT__: specifies the interrupt to enable. |
mbed_official | 354:e67efb2aab0e | 229 | * This parameter can be one of the following values: |
mbed_official | 354:e67efb2aab0e | 230 | * @arg WWDG_IT_EWI: Early wakeup interrupt |
mbed_official | 354:e67efb2aab0e | 231 | * @note Once enabled this interrupt cannot be disabled except by a system reset. |
mbed_official | 354:e67efb2aab0e | 232 | * @retval None |
mbed_official | 354:e67efb2aab0e | 233 | */ |
mbed_official | 354:e67efb2aab0e | 234 | #define __HAL_WWDG_ENABLE_IT(__INTERRUPT__) (*(__IO uint32_t *) CFR_BASE |= (__INTERRUPT__)) |
mbed_official | 354:e67efb2aab0e | 235 | |
mbed_official | 354:e67efb2aab0e | 236 | /** @brief Clear the WWDG's interrupt pending bits |
mbed_official | 354:e67efb2aab0e | 237 | * bits to clear the selected interrupt pending bits. |
mbed_official | 354:e67efb2aab0e | 238 | * @param __HANDLE__: WWDG handle |
mbed_official | 354:e67efb2aab0e | 239 | * @param __INTERRUPT__: specifies the interrupt pending bit to clear. |
mbed_official | 354:e67efb2aab0e | 240 | * This parameter can be one of the following values: |
mbed_official | 354:e67efb2aab0e | 241 | * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag |
mbed_official | 354:e67efb2aab0e | 242 | */ |
mbed_official | 354:e67efb2aab0e | 243 | #define __HAL_WWDG_CLEAR_IT(__HANDLE__, __INTERRUPT__) __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__)) |
mbed_official | 354:e67efb2aab0e | 244 | |
mbed_official | 354:e67efb2aab0e | 245 | /** |
mbed_official | 354:e67efb2aab0e | 246 | * @} |
mbed_official | 354:e67efb2aab0e | 247 | */ |
mbed_official | 354:e67efb2aab0e | 248 | |
mbed_official | 354:e67efb2aab0e | 249 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 354:e67efb2aab0e | 250 | |
mbed_official | 354:e67efb2aab0e | 251 | /** @addtogroup WWDG_Exported_Functions |
mbed_official | 354:e67efb2aab0e | 252 | * @{ |
mbed_official | 354:e67efb2aab0e | 253 | */ |
mbed_official | 354:e67efb2aab0e | 254 | |
mbed_official | 354:e67efb2aab0e | 255 | /** @addtogroup WWDG_Exported_Functions_Group1 |
mbed_official | 354:e67efb2aab0e | 256 | * @{ |
mbed_official | 354:e67efb2aab0e | 257 | */ |
mbed_official | 354:e67efb2aab0e | 258 | /* Initialization/de-initialization functions **********************************/ |
mbed_official | 354:e67efb2aab0e | 259 | HAL_StatusTypeDef HAL_WWDG_Init(WWDG_HandleTypeDef *hwwdg); |
mbed_official | 354:e67efb2aab0e | 260 | HAL_StatusTypeDef HAL_WWDG_DeInit(WWDG_HandleTypeDef *hwwdg); |
mbed_official | 354:e67efb2aab0e | 261 | void HAL_WWDG_MspInit(WWDG_HandleTypeDef *hwwdg); |
mbed_official | 354:e67efb2aab0e | 262 | void HAL_WWDG_MspDeInit(WWDG_HandleTypeDef *hwwdg); |
mbed_official | 354:e67efb2aab0e | 263 | void HAL_WWDG_WakeupCallback(WWDG_HandleTypeDef* hwwdg); |
mbed_official | 354:e67efb2aab0e | 264 | |
mbed_official | 354:e67efb2aab0e | 265 | /** |
mbed_official | 354:e67efb2aab0e | 266 | * @} |
mbed_official | 354:e67efb2aab0e | 267 | */ |
mbed_official | 354:e67efb2aab0e | 268 | |
mbed_official | 354:e67efb2aab0e | 269 | /** @addtogroup WWDG_Exported_Functions_Group2 |
mbed_official | 354:e67efb2aab0e | 270 | * @{ |
mbed_official | 354:e67efb2aab0e | 271 | */ |
mbed_official | 354:e67efb2aab0e | 272 | /* I/O operation functions ******************************************************/ |
mbed_official | 354:e67efb2aab0e | 273 | HAL_StatusTypeDef HAL_WWDG_Start(WWDG_HandleTypeDef *hwwdg); |
mbed_official | 354:e67efb2aab0e | 274 | HAL_StatusTypeDef HAL_WWDG_Start_IT(WWDG_HandleTypeDef *hwwdg); |
mbed_official | 354:e67efb2aab0e | 275 | HAL_StatusTypeDef HAL_WWDG_Refresh(WWDG_HandleTypeDef *hwwdg, uint32_t Counter); |
mbed_official | 354:e67efb2aab0e | 276 | void HAL_WWDG_IRQHandler(WWDG_HandleTypeDef *hwwdg); |
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 | /** @addtogroup WWDG_Exported_Functions_Group3 |
mbed_official | 354:e67efb2aab0e | 283 | * @{ |
mbed_official | 354:e67efb2aab0e | 284 | */ |
mbed_official | 354:e67efb2aab0e | 285 | /* Peripheral State functions **************************************************/ |
mbed_official | 354:e67efb2aab0e | 286 | HAL_WWDG_StateTypeDef HAL_WWDG_GetState(WWDG_HandleTypeDef *hwwdg); |
mbed_official | 354:e67efb2aab0e | 287 | |
mbed_official | 354:e67efb2aab0e | 288 | /** |
mbed_official | 354:e67efb2aab0e | 289 | * @} |
mbed_official | 354:e67efb2aab0e | 290 | */ |
mbed_official | 354:e67efb2aab0e | 291 | |
mbed_official | 354:e67efb2aab0e | 292 | /** |
mbed_official | 354:e67efb2aab0e | 293 | * @} |
mbed_official | 354:e67efb2aab0e | 294 | */ |
mbed_official | 354:e67efb2aab0e | 295 | |
mbed_official | 354:e67efb2aab0e | 296 | /** |
mbed_official | 354:e67efb2aab0e | 297 | * @} |
mbed_official | 354:e67efb2aab0e | 298 | */ |
mbed_official | 354:e67efb2aab0e | 299 | |
mbed_official | 354:e67efb2aab0e | 300 | /** |
mbed_official | 354:e67efb2aab0e | 301 | * @} |
mbed_official | 354:e67efb2aab0e | 302 | */ |
mbed_official | 354:e67efb2aab0e | 303 | |
mbed_official | 354:e67efb2aab0e | 304 | #ifdef __cplusplus |
mbed_official | 354:e67efb2aab0e | 305 | } |
mbed_official | 354:e67efb2aab0e | 306 | #endif |
mbed_official | 354:e67efb2aab0e | 307 | |
mbed_official | 354:e67efb2aab0e | 308 | #endif /* __STM32L1xx_HAL_WWDG_H */ |
mbed_official | 354:e67efb2aab0e | 309 | |
mbed_official | 354:e67efb2aab0e | 310 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |