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