The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Parent:
92:4fc01daae5a5
Child:
123:b0220dba8be7
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

Who changed what in which revision?

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