my fork
Fork of mbed by
TARGET_NUCLEO_L053R8/stm32l0xx_hal_wwdg.h@92:4fc01daae5a5, 2014-11-27 (annotated)
- Committer:
- bogdanm
- Date:
- Thu Nov 27 13:33:22 2014 +0000
- Revision:
- 92:4fc01daae5a5
- Parent:
- 84:0b3ab51c8877
- Child:
- 96:487b796308b0
Release 92 of the mbed libray
Main changes:
- nRF51822: fixed pin assignment issues
- ST targets moving to the STM32Cube driver
- LPC1439: fixed serial interrupt issue
- first Cortex-A platform supported in mbed (RZ_A1H)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 84:0b3ab51c8877 | 1 | /** |
bogdanm | 84:0b3ab51c8877 | 2 | ****************************************************************************** |
bogdanm | 84:0b3ab51c8877 | 3 | * @file stm32l0xx_hal_wwdg.h |
bogdanm | 84:0b3ab51c8877 | 4 | * @author MCD Application Team |
bogdanm | 92:4fc01daae5a5 | 5 | * @version V1.1.0 |
bogdanm | 92:4fc01daae5a5 | 6 | * @date 18-June-2014 |
bogdanm | 84:0b3ab51c8877 | 7 | * @brief Header file of WWDG HAL module. |
bogdanm | 84:0b3ab51c8877 | 8 | ****************************************************************************** |
bogdanm | 84:0b3ab51c8877 | 9 | * @attention |
bogdanm | 84:0b3ab51c8877 | 10 | * |
bogdanm | 84:0b3ab51c8877 | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
bogdanm | 84:0b3ab51c8877 | 12 | * |
bogdanm | 84:0b3ab51c8877 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
bogdanm | 84:0b3ab51c8877 | 14 | * are permitted provided that the following conditions are met: |
bogdanm | 84:0b3ab51c8877 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
bogdanm | 84:0b3ab51c8877 | 16 | * this list of conditions and the following disclaimer. |
bogdanm | 84:0b3ab51c8877 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bogdanm | 84:0b3ab51c8877 | 18 | * this list of conditions and the following disclaimer in the documentation |
bogdanm | 84:0b3ab51c8877 | 19 | * and/or other materials provided with the distribution. |
bogdanm | 84:0b3ab51c8877 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bogdanm | 84:0b3ab51c8877 | 21 | * may be used to endorse or promote products derived from this software |
bogdanm | 84:0b3ab51c8877 | 22 | * without specific prior written permission. |
bogdanm | 84:0b3ab51c8877 | 23 | * |
bogdanm | 84:0b3ab51c8877 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 84:0b3ab51c8877 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 84:0b3ab51c8877 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bogdanm | 84:0b3ab51c8877 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bogdanm | 84:0b3ab51c8877 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bogdanm | 84:0b3ab51c8877 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bogdanm | 84:0b3ab51c8877 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bogdanm | 84:0b3ab51c8877 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bogdanm | 84:0b3ab51c8877 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bogdanm | 84:0b3ab51c8877 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 84:0b3ab51c8877 | 34 | * |
bogdanm | 84:0b3ab51c8877 | 35 | ****************************************************************************** |
bogdanm | 84:0b3ab51c8877 | 36 | */ |
bogdanm | 84:0b3ab51c8877 | 37 | |
bogdanm | 84:0b3ab51c8877 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bogdanm | 84:0b3ab51c8877 | 39 | #ifndef __STM32L0xx_HAL_WWDG_H |
bogdanm | 84:0b3ab51c8877 | 40 | #define __STM32L0xx_HAL_WWDG_H |
bogdanm | 84:0b3ab51c8877 | 41 | |
bogdanm | 84:0b3ab51c8877 | 42 | #ifdef __cplusplus |
bogdanm | 84:0b3ab51c8877 | 43 | extern "C" { |
bogdanm | 84:0b3ab51c8877 | 44 | #endif |
bogdanm | 84:0b3ab51c8877 | 45 | |
bogdanm | 84:0b3ab51c8877 | 46 | /* Includes ------------------------------------------------------------------*/ |
bogdanm | 84:0b3ab51c8877 | 47 | #include "stm32l0xx_hal_def.h" |
bogdanm | 84:0b3ab51c8877 | 48 | |
bogdanm | 84:0b3ab51c8877 | 49 | /** @addtogroup STM32L0xx_HAL_Driver |
bogdanm | 84:0b3ab51c8877 | 50 | * @{ |
bogdanm | 84:0b3ab51c8877 | 51 | */ |
bogdanm | 84:0b3ab51c8877 | 52 | |
bogdanm | 84:0b3ab51c8877 | 53 | /** @addtogroup WWDG |
bogdanm | 84:0b3ab51c8877 | 54 | * @{ |
bogdanm | 84:0b3ab51c8877 | 55 | */ |
bogdanm | 84:0b3ab51c8877 | 56 | |
bogdanm | 84:0b3ab51c8877 | 57 | /* Exported types ------------------------------------------------------------*/ |
bogdanm | 84:0b3ab51c8877 | 58 | |
bogdanm | 92:4fc01daae5a5 | 59 | /** @defgroup WWDG_Exported_Types WWDG Exported Types |
bogdanm | 92:4fc01daae5a5 | 60 | * @{ |
bogdanm | 92:4fc01daae5a5 | 61 | */ |
bogdanm | 92:4fc01daae5a5 | 62 | |
bogdanm | 84:0b3ab51c8877 | 63 | /** |
bogdanm | 84:0b3ab51c8877 | 64 | * @brief WWDG HAL State Structure definition |
bogdanm | 84:0b3ab51c8877 | 65 | */ |
bogdanm | 84:0b3ab51c8877 | 66 | typedef enum |
bogdanm | 84:0b3ab51c8877 | 67 | { |
bogdanm | 84:0b3ab51c8877 | 68 | HAL_WWDG_STATE_RESET = 0x00, /*!< WWDG not yet initialized or disabled */ |
bogdanm | 84:0b3ab51c8877 | 69 | HAL_WWDG_STATE_READY = 0x01, /*!< WWDG initialized and ready for use */ |
bogdanm | 84:0b3ab51c8877 | 70 | HAL_WWDG_STATE_BUSY = 0x02, /*!< WWDG internal process is ongoing */ |
bogdanm | 84:0b3ab51c8877 | 71 | HAL_WWDG_STATE_TIMEOUT = 0x03, /*!< WWDG timeout state */ |
bogdanm | 84:0b3ab51c8877 | 72 | HAL_WWDG_STATE_ERROR = 0x04 /*!< WWDG error state */ |
bogdanm | 84:0b3ab51c8877 | 73 | }HAL_WWDG_StateTypeDef; |
bogdanm | 84:0b3ab51c8877 | 74 | |
bogdanm | 84:0b3ab51c8877 | 75 | /** |
bogdanm | 84:0b3ab51c8877 | 76 | * @brief WWDG Init structure definition |
bogdanm | 84:0b3ab51c8877 | 77 | */ |
bogdanm | 84:0b3ab51c8877 | 78 | typedef struct |
bogdanm | 84:0b3ab51c8877 | 79 | { |
bogdanm | 84:0b3ab51c8877 | 80 | uint32_t Prescaler; /*!< Specifies the prescaler value of the WWDG. |
bogdanm | 84:0b3ab51c8877 | 81 | This parameter can be a value of @ref WWDG_Prescaler */ |
bogdanm | 84:0b3ab51c8877 | 82 | |
bogdanm | 84:0b3ab51c8877 | 83 | uint32_t Window; /*!< Specifies the WWDG window value to be compared to the downcounter. |
bogdanm | 84:0b3ab51c8877 | 84 | This parameter must be a number lower than Max_Data = 0x80 */ |
bogdanm | 84:0b3ab51c8877 | 85 | |
bogdanm | 84:0b3ab51c8877 | 86 | uint32_t Counter; /*!< Specifies the WWDG free-running downcounter value. |
bogdanm | 84:0b3ab51c8877 | 87 | This parameter must be a number between Min_Data = 0x40 and Max_Data = 0x7F */ |
bogdanm | 84:0b3ab51c8877 | 88 | |
bogdanm | 84:0b3ab51c8877 | 89 | }WWDG_InitTypeDef; |
bogdanm | 84:0b3ab51c8877 | 90 | |
bogdanm | 84:0b3ab51c8877 | 91 | /** |
bogdanm | 84:0b3ab51c8877 | 92 | * @brief WWDG handle Structure definition |
bogdanm | 84:0b3ab51c8877 | 93 | */ |
bogdanm | 84:0b3ab51c8877 | 94 | typedef struct |
bogdanm | 84:0b3ab51c8877 | 95 | { |
bogdanm | 84:0b3ab51c8877 | 96 | WWDG_TypeDef *Instance; /*!< Register base address */ |
bogdanm | 84:0b3ab51c8877 | 97 | |
bogdanm | 84:0b3ab51c8877 | 98 | WWDG_InitTypeDef Init; /*!< WWDG required parameters */ |
bogdanm | 84:0b3ab51c8877 | 99 | |
bogdanm | 84:0b3ab51c8877 | 100 | HAL_LockTypeDef Lock; /*!< WWDG locking object */ |
bogdanm | 84:0b3ab51c8877 | 101 | |
bogdanm | 84:0b3ab51c8877 | 102 | __IO HAL_WWDG_StateTypeDef State; /*!< WWDG communication state */ |
bogdanm | 84:0b3ab51c8877 | 103 | |
bogdanm | 84:0b3ab51c8877 | 104 | }WWDG_HandleTypeDef; |
bogdanm | 84:0b3ab51c8877 | 105 | |
bogdanm | 92:4fc01daae5a5 | 106 | /** |
bogdanm | 92:4fc01daae5a5 | 107 | * @} |
bogdanm | 92:4fc01daae5a5 | 108 | */ |
bogdanm | 92:4fc01daae5a5 | 109 | |
bogdanm | 84:0b3ab51c8877 | 110 | /* Exported constants --------------------------------------------------------*/ |
bogdanm | 84:0b3ab51c8877 | 111 | |
bogdanm | 92:4fc01daae5a5 | 112 | /** @defgroup WWDG_Exported_Constants WWDG Exported Constants |
bogdanm | 84:0b3ab51c8877 | 113 | * @{ |
bogdanm | 84:0b3ab51c8877 | 114 | */ |
bogdanm | 84:0b3ab51c8877 | 115 | |
bogdanm | 92:4fc01daae5a5 | 116 | /** @defgroup WWDG_BitAddress_AliasRegion WWDG BitAddress AliasRegion |
bogdanm | 84:0b3ab51c8877 | 117 | * @brief WWDG registers bit address in the alias region |
bogdanm | 84:0b3ab51c8877 | 118 | * @{ |
bogdanm | 84:0b3ab51c8877 | 119 | */ |
bogdanm | 84:0b3ab51c8877 | 120 | |
bogdanm | 84:0b3ab51c8877 | 121 | /* --- CFR Register ---*/ |
bogdanm | 84:0b3ab51c8877 | 122 | /* Alias word address of EWI bit */ |
bogdanm | 84:0b3ab51c8877 | 123 | #define CFR_BASE (uint32_t)(WWDG_BASE + 0x04) |
bogdanm | 84:0b3ab51c8877 | 124 | |
bogdanm | 84:0b3ab51c8877 | 125 | /** |
bogdanm | 84:0b3ab51c8877 | 126 | * @} |
bogdanm | 84:0b3ab51c8877 | 127 | */ |
bogdanm | 84:0b3ab51c8877 | 128 | |
bogdanm | 92:4fc01daae5a5 | 129 | /** @defgroup WWDG_Interrupt_definition WWDG Interrupt definition |
bogdanm | 84:0b3ab51c8877 | 130 | * @{ |
bogdanm | 84:0b3ab51c8877 | 131 | */ |
bogdanm | 84:0b3ab51c8877 | 132 | #define WWDG_IT_EWI ((uint32_t)WWDG_CFR_EWI) |
bogdanm | 84:0b3ab51c8877 | 133 | |
bogdanm | 92:4fc01daae5a5 | 134 | #define IS_WWDG_IT(__IT__) ((__IT__) == WWDG_IT_EWI) |
bogdanm | 84:0b3ab51c8877 | 135 | |
bogdanm | 84:0b3ab51c8877 | 136 | /** |
bogdanm | 84:0b3ab51c8877 | 137 | * @} |
bogdanm | 84:0b3ab51c8877 | 138 | */ |
bogdanm | 84:0b3ab51c8877 | 139 | |
bogdanm | 92:4fc01daae5a5 | 140 | /** @defgroup WWDG_Flag_definition WWDG Flag definition |
bogdanm | 84:0b3ab51c8877 | 141 | * @brief WWDG Flag definition |
bogdanm | 84:0b3ab51c8877 | 142 | * @{ |
bogdanm | 84:0b3ab51c8877 | 143 | */ |
bogdanm | 92:4fc01daae5a5 | 144 | #define WWDG_FLAG_EWIF ((uint32_t)WWDG_SR_EWIF) /*!< Early wakeup interrupt flag */ |
bogdanm | 84:0b3ab51c8877 | 145 | |
bogdanm | 92:4fc01daae5a5 | 146 | #define IS_WWDG_FLAG(__FLAG__) ((__FLAG__) == WWDG_FLAG_EWIF)) |
bogdanm | 84:0b3ab51c8877 | 147 | |
bogdanm | 84:0b3ab51c8877 | 148 | /** |
bogdanm | 84:0b3ab51c8877 | 149 | * @} |
bogdanm | 84:0b3ab51c8877 | 150 | */ |
bogdanm | 84:0b3ab51c8877 | 151 | |
bogdanm | 92:4fc01daae5a5 | 152 | /** @defgroup WWDG_Prescaler WWDG Prescaler |
bogdanm | 84:0b3ab51c8877 | 153 | * @{ |
bogdanm | 84:0b3ab51c8877 | 154 | */ |
bogdanm | 84:0b3ab51c8877 | 155 | #define WWDG_PRESCALER_1 ((uint32_t)0x00000000) /*!< WWDG counter clock = (PCLK1/4096)/1 */ |
bogdanm | 92:4fc01daae5a5 | 156 | #define WWDG_PRESCALER_2 ((uint32_t)WWDG_CFR_WDGTB0) /*!< WWDG counter clock = (PCLK1/4096)/2 */ |
bogdanm | 92:4fc01daae5a5 | 157 | #define WWDG_PRESCALER_4 ((uint32_t)WWDG_CFR_WDGTB1) /*!< WWDG counter clock = (PCLK1/4096)/4 */ |
bogdanm | 92:4fc01daae5a5 | 158 | #define WWDG_PRESCALER_8 ((uint32_t)WWDG_CFR_WDGTB) /*!< WWDG counter clock = (PCLK1/4096)/8 */ |
bogdanm | 84:0b3ab51c8877 | 159 | |
bogdanm | 92:4fc01daae5a5 | 160 | #define IS_WWDG_PRESCALER(__PRESCALER__) (((__PRESCALER__) == WWDG_PRESCALER_1) || \ |
bogdanm | 92:4fc01daae5a5 | 161 | ((__PRESCALER__) == WWDG_PRESCALER_2) || \ |
bogdanm | 92:4fc01daae5a5 | 162 | ((__PRESCALER__) == WWDG_PRESCALER_4) || \ |
bogdanm | 92:4fc01daae5a5 | 163 | ((__PRESCALER__) == WWDG_PRESCALER_8)) |
bogdanm | 84:0b3ab51c8877 | 164 | |
bogdanm | 84:0b3ab51c8877 | 165 | /** |
bogdanm | 84:0b3ab51c8877 | 166 | * @} |
bogdanm | 84:0b3ab51c8877 | 167 | */ |
bogdanm | 84:0b3ab51c8877 | 168 | |
bogdanm | 92:4fc01daae5a5 | 169 | /** @defgroup WWDG_Window WWDG Window |
bogdanm | 84:0b3ab51c8877 | 170 | * @{ |
bogdanm | 84:0b3ab51c8877 | 171 | */ |
bogdanm | 92:4fc01daae5a5 | 172 | #define IS_WWDG_WINDOW(__WINDOW__) ((__WINDOW__) <= 0x7F) |
bogdanm | 84:0b3ab51c8877 | 173 | |
bogdanm | 84:0b3ab51c8877 | 174 | /** |
bogdanm | 84:0b3ab51c8877 | 175 | * @} |
bogdanm | 84:0b3ab51c8877 | 176 | */ |
bogdanm | 84:0b3ab51c8877 | 177 | |
bogdanm | 92:4fc01daae5a5 | 178 | /** @defgroup WWDG_Counter WWDG Counter |
bogdanm | 84:0b3ab51c8877 | 179 | * @{ |
bogdanm | 84:0b3ab51c8877 | 180 | */ |
bogdanm | 92:4fc01daae5a5 | 181 | #define IS_WWDG_COUNTER(__COUNTER__) (((__COUNTER__) >= 0x40) && ((__COUNTER__) <= 0x7F)) |
bogdanm | 84:0b3ab51c8877 | 182 | |
bogdanm | 84:0b3ab51c8877 | 183 | /** |
bogdanm | 84:0b3ab51c8877 | 184 | * @} |
bogdanm | 84:0b3ab51c8877 | 185 | */ |
bogdanm | 84:0b3ab51c8877 | 186 | |
bogdanm | 84:0b3ab51c8877 | 187 | /** |
bogdanm | 84:0b3ab51c8877 | 188 | * @} |
bogdanm | 84:0b3ab51c8877 | 189 | */ |
bogdanm | 84:0b3ab51c8877 | 190 | |
bogdanm | 84:0b3ab51c8877 | 191 | /* Exported macro ------------------------------------------------------------*/ |
bogdanm | 84:0b3ab51c8877 | 192 | |
bogdanm | 92:4fc01daae5a5 | 193 | /** @defgroup WWDG_Exported_Macros WWDG Exported Macros |
bogdanm | 84:0b3ab51c8877 | 194 | * @{ |
bogdanm | 84:0b3ab51c8877 | 195 | */ |
bogdanm | 84:0b3ab51c8877 | 196 | |
bogdanm | 84:0b3ab51c8877 | 197 | /** @brief Reset WWDG handle state |
bogdanm | 84:0b3ab51c8877 | 198 | * @param __HANDLE__: WWDG handle |
bogdanm | 84:0b3ab51c8877 | 199 | * @retval None |
bogdanm | 84:0b3ab51c8877 | 200 | */ |
bogdanm | 84:0b3ab51c8877 | 201 | #define __HAL_WWDG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_WWDG_STATE_RESET) |
bogdanm | 84:0b3ab51c8877 | 202 | |
bogdanm | 84:0b3ab51c8877 | 203 | /** |
bogdanm | 84:0b3ab51c8877 | 204 | * @brief Enables the WWDG peripheral. |
bogdanm | 84:0b3ab51c8877 | 205 | * @param __HANDLE__: WWDG handle |
bogdanm | 84:0b3ab51c8877 | 206 | * @retval None |
bogdanm | 84:0b3ab51c8877 | 207 | */ |
bogdanm | 92:4fc01daae5a5 | 208 | #define __HAL_WWDG_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA) |
bogdanm | 84:0b3ab51c8877 | 209 | |
bogdanm | 84:0b3ab51c8877 | 210 | /** |
bogdanm | 84:0b3ab51c8877 | 211 | * @brief Gets the selected WWDG's flag status. |
bogdanm | 84:0b3ab51c8877 | 212 | * @param __HANDLE__: WWDG handle |
bogdanm | 84:0b3ab51c8877 | 213 | * @param __FLAG__: specifies the flag to check. |
bogdanm | 84:0b3ab51c8877 | 214 | * This parameter can be one of the following values: |
bogdanm | 84:0b3ab51c8877 | 215 | * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag |
bogdanm | 84:0b3ab51c8877 | 216 | * @retval The new state of WWDG_FLAG (SET or RESET). |
bogdanm | 84:0b3ab51c8877 | 217 | */ |
bogdanm | 84:0b3ab51c8877 | 218 | #define __HAL_WWDG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
bogdanm | 84:0b3ab51c8877 | 219 | |
bogdanm | 84:0b3ab51c8877 | 220 | /** |
bogdanm | 84:0b3ab51c8877 | 221 | * @brief Clears the WWDG's pending flags. |
bogdanm | 84:0b3ab51c8877 | 222 | * @param __HANDLE__: WWDG handle |
bogdanm | 84:0b3ab51c8877 | 223 | * @param __FLAG__: specifies the flag to clear. |
bogdanm | 84:0b3ab51c8877 | 224 | * This parameter can be one of the following values: |
bogdanm | 84:0b3ab51c8877 | 225 | * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag |
bogdanm | 84:0b3ab51c8877 | 226 | * @retval None |
bogdanm | 84:0b3ab51c8877 | 227 | */ |
bogdanm | 92:4fc01daae5a5 | 228 | #define __HAL_WWDG_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = ~(__FLAG__)) |
bogdanm | 84:0b3ab51c8877 | 229 | |
bogdanm | 84:0b3ab51c8877 | 230 | /** |
bogdanm | 84:0b3ab51c8877 | 231 | * @brief Enables the WWDG early wakeup interrupt. |
bogdanm | 84:0b3ab51c8877 | 232 | * @param __INTERRUPT__: specifies the interrupt to enable. |
bogdanm | 84:0b3ab51c8877 | 233 | * This parameter can be one of the following values: |
bogdanm | 84:0b3ab51c8877 | 234 | * @arg WWDG_IT_EWI: Early wakeup interrupt |
bogdanm | 84:0b3ab51c8877 | 235 | * @note Once enabled this interrupt cannot be disabled except by a system reset. |
bogdanm | 84:0b3ab51c8877 | 236 | * @retval None |
bogdanm | 84:0b3ab51c8877 | 237 | */ |
bogdanm | 84:0b3ab51c8877 | 238 | #define __HAL_WWDG_ENABLE_IT(__INTERRUPT__) (*(__IO uint32_t *) CFR_BASE |= (__INTERRUPT__)) |
bogdanm | 84:0b3ab51c8877 | 239 | |
bogdanm | 92:4fc01daae5a5 | 240 | /** @brief Clear the WWDG's interrupt pending bits |
bogdanm | 92:4fc01daae5a5 | 241 | * bits to clear the selected interrupt pending bits. |
bogdanm | 92:4fc01daae5a5 | 242 | * @param __HANDLE__: WWDG handle |
bogdanm | 92:4fc01daae5a5 | 243 | * @param __INTERRUPT__: specifies the interrupt pending bit to clear. |
bogdanm | 92:4fc01daae5a5 | 244 | * This parameter can be one of the following values: |
bogdanm | 92:4fc01daae5a5 | 245 | * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag |
bogdanm | 92:4fc01daae5a5 | 246 | */ |
bogdanm | 92:4fc01daae5a5 | 247 | #define __HAL_WWDG_CLEAR_IT(__HANDLE__, __INTERRUPT__) __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__)) |
bogdanm | 92:4fc01daae5a5 | 248 | |
bogdanm | 84:0b3ab51c8877 | 249 | /** |
bogdanm | 84:0b3ab51c8877 | 250 | * @} |
bogdanm | 84:0b3ab51c8877 | 251 | */ |
bogdanm | 84:0b3ab51c8877 | 252 | |
bogdanm | 84:0b3ab51c8877 | 253 | /* Exported functions --------------------------------------------------------*/ |
bogdanm | 84:0b3ab51c8877 | 254 | |
bogdanm | 92:4fc01daae5a5 | 255 | /** @addtogroup WWDG_Exported_Functions |
bogdanm | 92:4fc01daae5a5 | 256 | * @{ |
bogdanm | 92:4fc01daae5a5 | 257 | */ |
bogdanm | 92:4fc01daae5a5 | 258 | |
bogdanm | 84:0b3ab51c8877 | 259 | /* Initialization/de-initialization functions **********************************/ |
bogdanm | 84:0b3ab51c8877 | 260 | HAL_StatusTypeDef HAL_WWDG_Init(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 261 | HAL_StatusTypeDef HAL_WWDG_DeInit(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 262 | void HAL_WWDG_MspInit(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 263 | void HAL_WWDG_MspDeInit(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 264 | void HAL_WWDG_WakeupCallback(WWDG_HandleTypeDef* hwwdg); |
bogdanm | 84:0b3ab51c8877 | 265 | |
bogdanm | 84:0b3ab51c8877 | 266 | /* I/O operation functions ******************************************************/ |
bogdanm | 84:0b3ab51c8877 | 267 | HAL_StatusTypeDef HAL_WWDG_Start(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 268 | HAL_StatusTypeDef HAL_WWDG_Start_IT(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 269 | HAL_StatusTypeDef HAL_WWDG_Refresh(WWDG_HandleTypeDef *hwwdg, uint32_t Counter); |
bogdanm | 84:0b3ab51c8877 | 270 | void HAL_WWDG_IRQHandler(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 271 | |
bogdanm | 84:0b3ab51c8877 | 272 | /* Peripheral State functions **************************************************/ |
bogdanm | 84:0b3ab51c8877 | 273 | HAL_WWDG_StateTypeDef HAL_WWDG_GetState(WWDG_HandleTypeDef *hwwdg); |
bogdanm | 84:0b3ab51c8877 | 274 | |
bogdanm | 84:0b3ab51c8877 | 275 | /** |
bogdanm | 84:0b3ab51c8877 | 276 | * @} |
bogdanm | 92:4fc01daae5a5 | 277 | */ |
bogdanm | 92:4fc01daae5a5 | 278 | |
bogdanm | 92:4fc01daae5a5 | 279 | /** |
bogdanm | 92:4fc01daae5a5 | 280 | * @} |
bogdanm | 84:0b3ab51c8877 | 281 | */ |
bogdanm | 84:0b3ab51c8877 | 282 | |
bogdanm | 84:0b3ab51c8877 | 283 | /** |
bogdanm | 84:0b3ab51c8877 | 284 | * @} |
bogdanm | 84:0b3ab51c8877 | 285 | */ |
bogdanm | 84:0b3ab51c8877 | 286 | |
bogdanm | 84:0b3ab51c8877 | 287 | #ifdef __cplusplus |
bogdanm | 84:0b3ab51c8877 | 288 | } |
bogdanm | 84:0b3ab51c8877 | 289 | #endif |
bogdanm | 84:0b3ab51c8877 | 290 | |
bogdanm | 84:0b3ab51c8877 | 291 | #endif /* __STM32L0xx_HAL_WWDG_H */ |
bogdanm | 84:0b3ab51c8877 | 292 | |
bogdanm | 84:0b3ab51c8877 | 293 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |