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