mbed library sources, include can_api for nucleo-f091rc

Dependents:   CanNucleoF0_example

Fork of mbed-src by mbed official

Committer:
ptpaterson
Date:
Thu Jan 07 05:49:05 2016 +0000
Revision:
645:13c87cbecd54
Parent:
610:813dcc80987e
corrected freeze on CAN_RECEIVE_IT

Who changed what in which revision?

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