Files
@ 41c563eb0a68
Branch filter:
Location: therm/libraries/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h - annotation
41c563eb0a68
16.4 KiB
text/plain
Remove old usb cruft
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 | 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 2a5ab412b8d9 | /**
******************************************************************************
* @file stm32f0xx_hal_pwr_ex.h
* @author MCD Application Team
* @version V1.1.0
* @date 03-Oct-2014
* @brief Header file of PWR HAL Extension module.
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F0xx_HAL_PWR_EX_H
#define __STM32F0xx_HAL_PWR_EX_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32f0xx_hal_def.h"
/** @addtogroup STM32F0xx_HAL_Driver
* @{
*/
/** @addtogroup PWREx
* @{
*/
/* Exported types ------------------------------------------------------------*/
/** @defgroup PWREx_Exported_Types PWREx Exported Types
* @{
*/
#if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
defined (STM32F071xB) || defined (STM32F072xB) || \
defined (STM32F091xC)
/**
* @brief PWR PVD configuration structure definition
*/
typedef struct
{
uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level
This parameter can be a value of @ref PWREx_PVD_detection_level */
uint32_t Mode; /*!< Mode: Specifies the operating mode for the selected pins.
This parameter can be a value of @ref PWREx_PVD_Mode */
}PWR_PVDTypeDef;
#endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
/* defined (STM32F071xB) || defined (STM32F072xB) || */
/* defined (STM32F091xC) */
/**
* @}
*/
/* Exported constants --------------------------------------------------------*/
/** @defgroup PWREx_Exported_Constants PWREx Exported Constants
* @{
*/
/** @defgroup PWREx_WakeUp_Pins PWREx Wakeup Pins
* @{
*/
#if defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx)
#define PWR_WAKEUP_PIN1 ((uint32_t)0x00)
#define PWR_WAKEUP_PIN2 ((uint32_t)0x01)
#define PWR_WAKEUP_PIN3 ((uint32_t)0x02)
#define PWR_WAKEUP_PIN4 ((uint32_t)0x03)
#define PWR_WAKEUP_PIN5 ((uint32_t)0x04)
#define PWR_WAKEUP_PIN6 ((uint32_t)0x05)
#define PWR_WAKEUP_PIN7 ((uint32_t)0x06)
#define PWR_WAKEUP_PIN8 ((uint32_t)0x07)
#define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
((PIN) == PWR_WAKEUP_PIN2) || \
((PIN) == PWR_WAKEUP_PIN3) || \
((PIN) == PWR_WAKEUP_PIN4) || \
((PIN) == PWR_WAKEUP_PIN5) || \
((PIN) == PWR_WAKEUP_PIN6) || \
((PIN) == PWR_WAKEUP_PIN7) || \
((PIN) == PWR_WAKEUP_PIN8))
#else
#define PWR_WAKEUP_PIN1 ((uint32_t)0x00)
#define PWR_WAKEUP_PIN2 ((uint32_t)0x01)
#define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
((PIN) == PWR_WAKEUP_PIN2))
#endif /* defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || */
/* defined (STM32F091xC) || defined (STM32F098xx) */
/**
* @}
*/
/** @defgroup PWREx_EXTI_Line PWREx EXTI Line
* @{
*/
#if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
defined (STM32F071xB) || defined (STM32F072xB) || \
defined (STM32F091xC)
#define PWR_EXTI_LINE_PVD ((uint32_t)0x00010000) /*!< External interrupt line 16 Connected to the PVD EXTI Line */
#endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
/* defined (STM32F071xB) || defined (STM32F072xB) || */
/* defined (STM32F091xC) */
#if defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx)
#define PWR_EXTI_LINE_VDDIO2 ((uint32_t)0x80000000) /*!< External interrupt line 31 Connected to the Vddio2 Monitor EXTI Line */
#endif /* defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx) */
/**
* @}
*/
#if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
defined (STM32F071xB) || defined (STM32F072xB) || \
defined (STM32F091xC)
/** @defgroup PWREx_PVD_detection_level PWREx PVD detection level
* @{
*/
#define PWR_PVDLEVEL_0 PWR_CR_PLS_LEV0
#define PWR_PVDLEVEL_1 PWR_CR_PLS_LEV1
#define PWR_PVDLEVEL_2 PWR_CR_PLS_LEV2
#define PWR_PVDLEVEL_3 PWR_CR_PLS_LEV3
#define PWR_PVDLEVEL_4 PWR_CR_PLS_LEV4
#define PWR_PVDLEVEL_5 PWR_CR_PLS_LEV5
#define PWR_PVDLEVEL_6 PWR_CR_PLS_LEV6
#define PWR_PVDLEVEL_7 PWR_CR_PLS_LEV7
#define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \
((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \
((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \
((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7))
/**
* @}
*/
/** @defgroup PWREx_PVD_Mode PWREx PVD Mode
* @{
*/
#define PWR_PVD_MODE_NORMAL ((uint32_t)0x00000000) /*!< basic mode is used */
#define PWR_PVD_MODE_IT_RISING ((uint32_t)0x00010001) /*!< External Interrupt Mode with Rising edge trigger detection */
#define PWR_PVD_MODE_IT_FALLING ((uint32_t)0x00010002) /*!< External Interrupt Mode with Falling edge trigger detection */
#define PWR_PVD_MODE_IT_RISING_FALLING ((uint32_t)0x00010003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
#define PWR_PVD_MODE_EVENT_RISING ((uint32_t)0x00020001) /*!< Event Mode with Rising edge trigger detection */
#define PWR_PVD_MODE_EVENT_FALLING ((uint32_t)0x00020002) /*!< Event Mode with Falling edge trigger detection */
#define PWR_PVD_MODE_EVENT_RISING_FALLING ((uint32_t)0x00020003) /*!< Event Mode with Rising/Falling edge trigger detection */
#define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING)|| ((MODE) == PWR_PVD_MODE_IT_FALLING) || \
((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING) || \
((MODE) == PWR_PVD_MODE_EVENT_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) || \
((MODE) == PWR_PVD_MODE_NORMAL))
/**
* @}
*/
#endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
/* defined (STM32F071xB) || defined (STM32F072xB) || */
/* defined (STM32F091xC) */
/** @defgroup PWREx_Flag PWREx Flag
* @{
*/
#if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
defined (STM32F071xB) || defined (STM32F072xB) || \
defined (STM32F091xC)
#define PWR_FLAG_WU PWR_CSR_WUF
#define PWR_FLAG_SB PWR_CSR_SBF
#define PWR_FLAG_PVDO PWR_CSR_PVDO
#define PWR_FLAG_VREFINTRDY PWR_CSR_VREFINTRDYF
#else
#define PWR_FLAG_WU PWR_CSR_WUF
#define PWR_FLAG_SB PWR_CSR_SBF
#endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
/* defined (STM32F071xB) || defined (STM32F072xB) || */
/* defined (STM32F091xC) */
/**
* @}
*/
/**
* @}
*/
/* Exported macro ------------------------------------------------------------*/
/** @defgroup PWREx_Exported_Macros PWREx Exported Macros
* @{
*/
#if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
defined (STM32F071xB) || defined (STM32F072xB) || \
defined (STM32F091xC)
/**
* @brief Enable interrupt on PVD Exti Line 16.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_ENABLE_IT() (EXTI->IMR |= (PWR_EXTI_LINE_PVD))
/**
* @brief Disable interrupt on PVD Exti Line 16.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_DISABLE_IT() (EXTI->IMR &= ~(PWR_EXTI_LINE_PVD))
/**
* @brief Enable event on PVD Exti Line 16.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT() (EXTI->EMR |= (PWR_EXTI_LINE_PVD))
/**
* @brief Disable event on PVD Exti Line 16.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(PWR_EXTI_LINE_PVD))
/**
* @brief PVD EXTI line configuration: clear falling edge and rising edge trigger.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_CLEAR_EGDE_TRIGGER() EXTI->FTSR &= ~(PWR_EXTI_LINE_PVD); \
EXTI->RTSR &= ~(PWR_EXTI_LINE_PVD)
/**
* @brief PVD EXTI line configuration: set falling edge trigger.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_SET_FALLING_EGDE_TRIGGER() EXTI->FTSR |= (PWR_EXTI_LINE_PVD)
/**
* @brief PVD EXTI line configuration: set rising edge trigger.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_SET_RISING_EDGE_TRIGGER() EXTI->RTSR |= (PWR_EXTI_LINE_PVD)
/**
* @brief Check whether the specified PVD EXTI interrupt flag is set or not.
* @retval EXTI PVD Line Status.
*/
#define __HAL_PWR_PVD_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_PVD))
/**
* @brief Clear the PVD EXTI flag.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_PVD))
/**
* @brief Generate a Software interrupt on selected EXTI line.
* @retval None.
*/
#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() (EXTI->SWIER |= (PWR_EXTI_LINE_PVD))
#endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
/* defined (STM32F071xB) || defined (STM32F072xB) || */
/* defined (STM32F091xC) */
#if defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx)
/**
* @brief Enable interrupt on Vddio2 Monitor Exti Line 31.
* @retval None.
*/
#define __HAL_PWR_VDDIO2_EXTI_ENABLE_IT() (EXTI->IMR |= (PWR_EXTI_LINE_VDDIO2))
/**
* @brief Disable interrupt on Vddio2 Monitor Exti Line 31.
* @retval None.
*/
#define __HAL_PWR_VDDIO2_EXTI_DISABLE_IT() (EXTI->IMR &= ~(PWR_EXTI_LINE_VDDIO2))
/**
* @brief Vddio2 Monitor EXTI line configuration: clear falling edge and rising edge trigger.
* @retval None.
*/
#define __HAL_PWR_VDDIO2_EXTI_CLEAR_EGDE_TRIGGER() EXTI->FTSR &= ~(PWR_EXTI_LINE_VDDIO2); \
EXTI->RTSR &= ~(PWR_EXTI_LINE_VDDIO2)
/**
* @brief Vddio2 Monitor EXTI line configuration: set falling edge trigger.
* @retval None.
*/
#define __HAL_PWR_VDDIO2_EXTI_SET_FALLING_EGDE_TRIGGER() EXTI->FTSR |= (PWR_EXTI_LINE_VDDIO2)
/**
* @brief Check whether the specified VDDIO2 monitor EXTI interrupt flag is set or not.
* @retval EXTI VDDIO2 Monitor Line Status.
*/
#define __HAL_PWR_VDDIO2_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_VDDIO2))
/**
* @brief Clear the VDDIO2 Monitor EXTI flag.
* @retval None.
*/
#define __HAL_PWR_VDDIO2_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_VDDIO2))
/**
* @brief Generate a Software interrupt on selected EXTI line.
* @retval None.
*/
#define __HAL_PWR_VDDIO2_EXTI_GENERATE_SWIT() (EXTI->SWIER |= (PWR_EXTI_LINE_VDDIO2))
#endif /* defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx) */
/**
* @}
*/
/* Exported functions --------------------------------------------------------*/
/** @addtogroup PWREx_Exported_Functions PWREx Exported Functions
* @{
*/
/** @addtogroup PWREx_Exported_Functions_Group1
* @{
*/
/* I/O operation functions ***************************************************/
#if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
defined (STM32F071xB) || defined (STM32F072xB) || \
defined (STM32F091xC)
void HAL_PWR_PVD_IRQHandler(void);
void HAL_PWR_PVDCallback(void);
#endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
/* defined (STM32F071xB) || defined (STM32F072xB) || */
/* defined (STM32F091xC) */
#if defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx)
void HAL_PWR_Vddio2Monitor_IRQHandler(void);
void HAL_PWR_Vddio2MonitorCallback(void);
#endif /* defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx) */
/* Peripheral Control functions **********************************************/
#if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
defined (STM32F071xB) || defined (STM32F072xB) || \
defined (STM32F091xC)
void HAL_PWR_PVDConfig(PWR_PVDTypeDef *sConfigPVD);
void HAL_PWR_EnablePVD(void);
void HAL_PWR_DisablePVD(void);
#endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
/* defined (STM32F071xB) || defined (STM32F072xB) || */
/* defined (STM32F091xC) */
#if defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx)
void HAL_PWR_EnableVddio2Monitor(void);
void HAL_PWR_DisableVddio2Monitor(void);
#endif /* defined (STM32F042x6) || defined (STM32F048xx) || \
defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
defined (STM32F091xC) || defined (STM32F098xx) */
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* __STM32F0xx_HAL_PWR_EX_H */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|