my fork
Fork of mbed by
TARGET_NUCLEO_F072RB/stm32f0xx_hal_pwr_ex.h@85:024bf7f99721, 2014-06-11 (annotated)
- Committer:
- bogdanm
- Date:
- Wed Jun 11 15:14:05 2014 +0100
- Revision:
- 85:024bf7f99721
- Child:
- 92:4fc01daae5a5
Release 85 of the mbed library
Main changes:
- K64F Ethernet fixes
- Updated tests
- Fixes for various mbed targets
- Code cleanup: fixed warnings, more consistent code style
- GCC support for K64F
There is a known issue with the I2C interface on some ST targets. If you
find the I2C interface problematic on your ST board, please log a bug
against this on mbed.org.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 85:024bf7f99721 | 1 | /** |
bogdanm | 85:024bf7f99721 | 2 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 3 | * @file stm32f0xx_hal_pwr_ex.h |
bogdanm | 85:024bf7f99721 | 4 | * @author MCD Application Team |
bogdanm | 85:024bf7f99721 | 5 | * @version V1.0.0 |
bogdanm | 85:024bf7f99721 | 6 | * @date 28-May-2014 |
bogdanm | 85:024bf7f99721 | 7 | * @brief Header file of PWR HAL Extension module. |
bogdanm | 85:024bf7f99721 | 8 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 9 | * @attention |
bogdanm | 85:024bf7f99721 | 10 | * |
bogdanm | 85:024bf7f99721 | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
bogdanm | 85:024bf7f99721 | 12 | * |
bogdanm | 85:024bf7f99721 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
bogdanm | 85:024bf7f99721 | 14 | * are permitted provided that the following conditions are met: |
bogdanm | 85:024bf7f99721 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
bogdanm | 85:024bf7f99721 | 16 | * this list of conditions and the following disclaimer. |
bogdanm | 85:024bf7f99721 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bogdanm | 85:024bf7f99721 | 18 | * this list of conditions and the following disclaimer in the documentation |
bogdanm | 85:024bf7f99721 | 19 | * and/or other materials provided with the distribution. |
bogdanm | 85:024bf7f99721 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bogdanm | 85:024bf7f99721 | 21 | * may be used to endorse or promote products derived from this software |
bogdanm | 85:024bf7f99721 | 22 | * without specific prior written permission. |
bogdanm | 85:024bf7f99721 | 23 | * |
bogdanm | 85:024bf7f99721 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 85:024bf7f99721 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 85:024bf7f99721 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bogdanm | 85:024bf7f99721 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bogdanm | 85:024bf7f99721 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bogdanm | 85:024bf7f99721 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bogdanm | 85:024bf7f99721 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bogdanm | 85:024bf7f99721 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bogdanm | 85:024bf7f99721 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bogdanm | 85:024bf7f99721 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 85:024bf7f99721 | 34 | * |
bogdanm | 85:024bf7f99721 | 35 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 36 | */ |
bogdanm | 85:024bf7f99721 | 37 | |
bogdanm | 85:024bf7f99721 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 39 | #ifndef __STM32F0xx_HAL_PWR_EX_H |
bogdanm | 85:024bf7f99721 | 40 | #define __STM32F0xx_HAL_PWR_EX_H |
bogdanm | 85:024bf7f99721 | 41 | |
bogdanm | 85:024bf7f99721 | 42 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 43 | extern "C" { |
bogdanm | 85:024bf7f99721 | 44 | #endif |
bogdanm | 85:024bf7f99721 | 45 | |
bogdanm | 85:024bf7f99721 | 46 | /* Includes ------------------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 47 | #include "stm32f0xx_hal_def.h" |
bogdanm | 85:024bf7f99721 | 48 | |
bogdanm | 85:024bf7f99721 | 49 | /** @addtogroup STM32F0xx_HAL_Driver |
bogdanm | 85:024bf7f99721 | 50 | * @{ |
bogdanm | 85:024bf7f99721 | 51 | */ |
bogdanm | 85:024bf7f99721 | 52 | |
bogdanm | 85:024bf7f99721 | 53 | /** @addtogroup PWREx |
bogdanm | 85:024bf7f99721 | 54 | * @{ |
bogdanm | 85:024bf7f99721 | 55 | */ |
bogdanm | 85:024bf7f99721 | 56 | |
bogdanm | 85:024bf7f99721 | 57 | /* Exported types ------------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 58 | |
bogdanm | 85:024bf7f99721 | 59 | #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \ |
bogdanm | 85:024bf7f99721 | 60 | defined (STM32F071xB) || defined (STM32F072xB) |
bogdanm | 85:024bf7f99721 | 61 | |
bogdanm | 85:024bf7f99721 | 62 | /** |
bogdanm | 85:024bf7f99721 | 63 | * @brief PWR PVD configuration structure definition |
bogdanm | 85:024bf7f99721 | 64 | */ |
bogdanm | 85:024bf7f99721 | 65 | typedef struct |
bogdanm | 85:024bf7f99721 | 66 | { |
bogdanm | 85:024bf7f99721 | 67 | uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level |
bogdanm | 85:024bf7f99721 | 68 | This parameter can be a value of @ref PWREx_PVD_detection_level */ |
bogdanm | 85:024bf7f99721 | 69 | |
bogdanm | 85:024bf7f99721 | 70 | uint32_t Mode; /*!< Mode: Specifies the operating mode for the selected pins. |
bogdanm | 85:024bf7f99721 | 71 | This parameter can be a value of @ref PWREx_PVD_Mode */ |
bogdanm | 85:024bf7f99721 | 72 | }PWR_PVDTypeDef; |
bogdanm | 85:024bf7f99721 | 73 | |
bogdanm | 85:024bf7f99721 | 74 | #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */ |
bogdanm | 85:024bf7f99721 | 75 | /* defined (STM32F071xB) || defined (STM32F072xB) */ |
bogdanm | 85:024bf7f99721 | 76 | |
bogdanm | 85:024bf7f99721 | 77 | /* Exported constants --------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 78 | /** @defgroup PWREx_Exported_Constants |
bogdanm | 85:024bf7f99721 | 79 | * @{ |
bogdanm | 85:024bf7f99721 | 80 | */ |
bogdanm | 85:024bf7f99721 | 81 | |
bogdanm | 85:024bf7f99721 | 82 | /** @defgroup PWREx_WakeUp_Pins |
bogdanm | 85:024bf7f99721 | 83 | * @{ |
bogdanm | 85:024bf7f99721 | 84 | */ |
bogdanm | 85:024bf7f99721 | 85 | #if defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) |
bogdanm | 85:024bf7f99721 | 86 | #define PWR_WAKEUP_PIN1 ((uint32_t)0x00) |
bogdanm | 85:024bf7f99721 | 87 | #define PWR_WAKEUP_PIN2 ((uint32_t)0x01) |
bogdanm | 85:024bf7f99721 | 88 | #define PWR_WAKEUP_PIN3 ((uint32_t)0x02) |
bogdanm | 85:024bf7f99721 | 89 | #define PWR_WAKEUP_PIN4 ((uint32_t)0x03) |
bogdanm | 85:024bf7f99721 | 90 | #define PWR_WAKEUP_PIN5 ((uint32_t)0x04) |
bogdanm | 85:024bf7f99721 | 91 | #define PWR_WAKEUP_PIN6 ((uint32_t)0x05) |
bogdanm | 85:024bf7f99721 | 92 | #define PWR_WAKEUP_PIN7 ((uint32_t)0x06) |
bogdanm | 85:024bf7f99721 | 93 | #define PWR_WAKEUP_PIN8 ((uint32_t)0x07) |
bogdanm | 85:024bf7f99721 | 94 | |
bogdanm | 85:024bf7f99721 | 95 | #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \ |
bogdanm | 85:024bf7f99721 | 96 | ((PIN) == PWR_WAKEUP_PIN2) || \ |
bogdanm | 85:024bf7f99721 | 97 | ((PIN) == PWR_WAKEUP_PIN3) || \ |
bogdanm | 85:024bf7f99721 | 98 | ((PIN) == PWR_WAKEUP_PIN4) || \ |
bogdanm | 85:024bf7f99721 | 99 | ((PIN) == PWR_WAKEUP_PIN5) || \ |
bogdanm | 85:024bf7f99721 | 100 | ((PIN) == PWR_WAKEUP_PIN6) || \ |
bogdanm | 85:024bf7f99721 | 101 | ((PIN) == PWR_WAKEUP_PIN7) || \ |
bogdanm | 85:024bf7f99721 | 102 | ((PIN) == PWR_WAKEUP_PIN8)) |
bogdanm | 85:024bf7f99721 | 103 | #else |
bogdanm | 85:024bf7f99721 | 104 | #define PWR_WAKEUP_PIN1 ((uint32_t)0x00) |
bogdanm | 85:024bf7f99721 | 105 | #define PWR_WAKEUP_PIN2 ((uint32_t)0x01) |
bogdanm | 85:024bf7f99721 | 106 | |
bogdanm | 85:024bf7f99721 | 107 | #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \ |
bogdanm | 85:024bf7f99721 | 108 | ((PIN) == PWR_WAKEUP_PIN2)) |
bogdanm | 85:024bf7f99721 | 109 | #endif /* defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) */ |
bogdanm | 85:024bf7f99721 | 110 | /** |
bogdanm | 85:024bf7f99721 | 111 | * @} |
bogdanm | 85:024bf7f99721 | 112 | */ |
bogdanm | 85:024bf7f99721 | 113 | |
bogdanm | 85:024bf7f99721 | 114 | #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \ |
bogdanm | 85:024bf7f99721 | 115 | defined (STM32F071xB) || defined (STM32F072xB) |
bogdanm | 85:024bf7f99721 | 116 | |
bogdanm | 85:024bf7f99721 | 117 | #define PWR_EXTI_LINE_PVD ((uint32_t)0x00010000) /*!< External interrupt line 16 Connected to the PVD EXTI Line */ |
bogdanm | 85:024bf7f99721 | 118 | |
bogdanm | 85:024bf7f99721 | 119 | /** @defgroup PWREx_PVD_detection_level |
bogdanm | 85:024bf7f99721 | 120 | * @{ |
bogdanm | 85:024bf7f99721 | 121 | */ |
bogdanm | 85:024bf7f99721 | 122 | #define PWR_PVDLEVEL_0 PWR_CR_PLS_LEV0 |
bogdanm | 85:024bf7f99721 | 123 | #define PWR_PVDLEVEL_1 PWR_CR_PLS_LEV1 |
bogdanm | 85:024bf7f99721 | 124 | #define PWR_PVDLEVEL_2 PWR_CR_PLS_LEV2 |
bogdanm | 85:024bf7f99721 | 125 | #define PWR_PVDLEVEL_3 PWR_CR_PLS_LEV3 |
bogdanm | 85:024bf7f99721 | 126 | #define PWR_PVDLEVEL_4 PWR_CR_PLS_LEV4 |
bogdanm | 85:024bf7f99721 | 127 | #define PWR_PVDLEVEL_5 PWR_CR_PLS_LEV5 |
bogdanm | 85:024bf7f99721 | 128 | #define PWR_PVDLEVEL_6 PWR_CR_PLS_LEV6 |
bogdanm | 85:024bf7f99721 | 129 | #define PWR_PVDLEVEL_7 PWR_CR_PLS_LEV7 |
bogdanm | 85:024bf7f99721 | 130 | #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \ |
bogdanm | 85:024bf7f99721 | 131 | ((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \ |
bogdanm | 85:024bf7f99721 | 132 | ((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \ |
bogdanm | 85:024bf7f99721 | 133 | ((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7)) |
bogdanm | 85:024bf7f99721 | 134 | /** |
bogdanm | 85:024bf7f99721 | 135 | * @} |
bogdanm | 85:024bf7f99721 | 136 | */ |
bogdanm | 85:024bf7f99721 | 137 | |
bogdanm | 85:024bf7f99721 | 138 | /** @defgroup PWREx_PVD_Mode |
bogdanm | 85:024bf7f99721 | 139 | * @{ |
bogdanm | 85:024bf7f99721 | 140 | */ |
bogdanm | 85:024bf7f99721 | 141 | #define PWR_MODE_EVT ((uint32_t)0x00000000) /*!< No Interrupt */ |
bogdanm | 85:024bf7f99721 | 142 | #define PWR_MODE_IT_RISING ((uint32_t)0x00000001) /*!< External Interrupt Mode with Rising edge trigger detection */ |
bogdanm | 85:024bf7f99721 | 143 | #define PWR_MODE_IT_FALLING ((uint32_t)0x00000002) /*!< External Interrupt Mode with Falling edge trigger detection */ |
bogdanm | 85:024bf7f99721 | 144 | #define PWR_MODE_IT_RISING_FALLING ((uint32_t)0x00000003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */ |
bogdanm | 85:024bf7f99721 | 145 | #define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_MODE_EVT) || ((MODE) == PWR_MODE_IT_RISING)|| \ |
bogdanm | 85:024bf7f99721 | 146 | ((MODE) == PWR_MODE_IT_FALLING) || ((MODE) == PWR_MODE_IT_RISING_FALLING)) |
bogdanm | 85:024bf7f99721 | 147 | /** |
bogdanm | 85:024bf7f99721 | 148 | * @} |
bogdanm | 85:024bf7f99721 | 149 | */ |
bogdanm | 85:024bf7f99721 | 150 | #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */ |
bogdanm | 85:024bf7f99721 | 151 | /* defined (STM32F071xB) || defined (STM32F072xB) */ |
bogdanm | 85:024bf7f99721 | 152 | |
bogdanm | 85:024bf7f99721 | 153 | /** @defgroup PWREx_Flag |
bogdanm | 85:024bf7f99721 | 154 | * @{ |
bogdanm | 85:024bf7f99721 | 155 | */ |
bogdanm | 85:024bf7f99721 | 156 | #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \ |
bogdanm | 85:024bf7f99721 | 157 | defined (STM32F071xB) || defined (STM32F072xB) |
bogdanm | 85:024bf7f99721 | 158 | |
bogdanm | 85:024bf7f99721 | 159 | #define PWR_FLAG_WU PWR_CSR_WUF |
bogdanm | 85:024bf7f99721 | 160 | #define PWR_FLAG_SB PWR_CSR_SBF |
bogdanm | 85:024bf7f99721 | 161 | #define PWR_FLAG_PVDO PWR_CSR_PVDO |
bogdanm | 85:024bf7f99721 | 162 | #define PWR_FLAG_VREFINTRDY PWR_CSR_VREFINTRDYF |
bogdanm | 85:024bf7f99721 | 163 | #define IS_PWR_GET_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB) || \ |
bogdanm | 85:024bf7f99721 | 164 | ((FLAG) == PWR_FLAG_PVDO) || ((FLAG) == PWR_FLAG_VREFINTRDY)) |
bogdanm | 85:024bf7f99721 | 165 | #else |
bogdanm | 85:024bf7f99721 | 166 | #define PWR_FLAG_WU PWR_CSR_WUF |
bogdanm | 85:024bf7f99721 | 167 | #define PWR_FLAG_SB PWR_CSR_SBF |
bogdanm | 85:024bf7f99721 | 168 | #define IS_PWR_GET_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB)) |
bogdanm | 85:024bf7f99721 | 169 | |
bogdanm | 85:024bf7f99721 | 170 | #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */ |
bogdanm | 85:024bf7f99721 | 171 | /* defined (STM32F071xB) || defined (STM32F072xB) */ |
bogdanm | 85:024bf7f99721 | 172 | /** |
bogdanm | 85:024bf7f99721 | 173 | * @} |
bogdanm | 85:024bf7f99721 | 174 | */ |
bogdanm | 85:024bf7f99721 | 175 | |
bogdanm | 85:024bf7f99721 | 176 | /** |
bogdanm | 85:024bf7f99721 | 177 | * @} |
bogdanm | 85:024bf7f99721 | 178 | */ |
bogdanm | 85:024bf7f99721 | 179 | |
bogdanm | 85:024bf7f99721 | 180 | /* Exported macro ------------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 181 | /** @defgroup PWREx_Exported_Macros |
bogdanm | 85:024bf7f99721 | 182 | * @{ |
bogdanm | 85:024bf7f99721 | 183 | */ |
bogdanm | 85:024bf7f99721 | 184 | #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \ |
bogdanm | 85:024bf7f99721 | 185 | defined (STM32F071xB) || defined (STM32F072xB) |
bogdanm | 85:024bf7f99721 | 186 | /** |
bogdanm | 85:024bf7f99721 | 187 | * @brief Enable the PVD Exti Line. |
bogdanm | 85:024bf7f99721 | 188 | * @param __EXTILINE__: specifies the PVD EXTI sources to be enabled. |
bogdanm | 85:024bf7f99721 | 189 | * This parameter can be: |
bogdanm | 85:024bf7f99721 | 190 | * @arg PWR_EXTI_LINE_PVD |
bogdanm | 85:024bf7f99721 | 191 | * @retval None. |
bogdanm | 85:024bf7f99721 | 192 | */ |
bogdanm | 85:024bf7f99721 | 193 | #define __HAL_PVD_EXTI_ENABLE_IT(__EXTILINE__) (EXTI->IMR |= (__EXTILINE__)) |
bogdanm | 85:024bf7f99721 | 194 | |
bogdanm | 85:024bf7f99721 | 195 | /** |
bogdanm | 85:024bf7f99721 | 196 | * @brief Disable the PVD EXTI Line. |
bogdanm | 85:024bf7f99721 | 197 | * @param __EXTILINE__: specifies the PVD EXTI sources to be disabled. |
bogdanm | 85:024bf7f99721 | 198 | * This parameter can be: |
bogdanm | 85:024bf7f99721 | 199 | * @arg PWR_EXTI_LINE_PVD |
bogdanm | 85:024bf7f99721 | 200 | * @retval None. |
bogdanm | 85:024bf7f99721 | 201 | */ |
bogdanm | 85:024bf7f99721 | 202 | #define __HAL_PVD_EXTI_DISABLE_IT(__EXTILINE__) (EXTI->IMR &= ~(__EXTILINE__)) |
bogdanm | 85:024bf7f99721 | 203 | |
bogdanm | 85:024bf7f99721 | 204 | /** |
bogdanm | 85:024bf7f99721 | 205 | * @brief Generate a Software interrupt on selected EXTI line. |
bogdanm | 85:024bf7f99721 | 206 | * @param __EXTILINE__: specifies the PVD EXTI sources to be disabled. |
bogdanm | 85:024bf7f99721 | 207 | * This parameter can be: |
bogdanm | 85:024bf7f99721 | 208 | * @arg PWR_EXTI_LINE_PVD |
bogdanm | 85:024bf7f99721 | 209 | * @retval None |
bogdanm | 85:024bf7f99721 | 210 | */ |
bogdanm | 85:024bf7f99721 | 211 | #define __HAL_PVD_EXTI_GENERATE_SWIT(__EXTILINE__) (EXTI->SWIER |= (__EXTILINE__)) |
bogdanm | 85:024bf7f99721 | 212 | |
bogdanm | 85:024bf7f99721 | 213 | /** |
bogdanm | 85:024bf7f99721 | 214 | * @brief Check whether the specified PVD EXTI interrupt flag is set or not. |
bogdanm | 85:024bf7f99721 | 215 | * @param __EXTILINE__: specifies the PVD EXTI sources to be cleared. |
bogdanm | 85:024bf7f99721 | 216 | * This parameter can be: |
bogdanm | 85:024bf7f99721 | 217 | * @arg PWR_EXTI_LINE_PVD |
bogdanm | 85:024bf7f99721 | 218 | * @retval EXTI PVD Line Status. |
bogdanm | 85:024bf7f99721 | 219 | */ |
bogdanm | 85:024bf7f99721 | 220 | #define __HAL_PVD_EXTI_GET_FLAG(__EXTILINE__) (EXTI->PR & (__EXTILINE__)) |
bogdanm | 85:024bf7f99721 | 221 | |
bogdanm | 85:024bf7f99721 | 222 | /** |
bogdanm | 85:024bf7f99721 | 223 | * @brief Clear the PVD EXTI flag. |
bogdanm | 85:024bf7f99721 | 224 | * @param __EXTILINE__: specifies the PVD EXTI sources to be cleared. |
bogdanm | 85:024bf7f99721 | 225 | * This parameter can be: |
bogdanm | 85:024bf7f99721 | 226 | * @arg PWR_EXTI_LINE_PVD |
bogdanm | 85:024bf7f99721 | 227 | * @retval None. |
bogdanm | 85:024bf7f99721 | 228 | */ |
bogdanm | 85:024bf7f99721 | 229 | #define __HAL_PVD_EXTI_CLEAR_FLAG(__EXTILINE__) (EXTI->PR = (__EXTILINE__)) |
bogdanm | 85:024bf7f99721 | 230 | |
bogdanm | 85:024bf7f99721 | 231 | #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */ |
bogdanm | 85:024bf7f99721 | 232 | /* defined (STM32F071xB) || defined (STM32F072xB) */ |
bogdanm | 85:024bf7f99721 | 233 | /** |
bogdanm | 85:024bf7f99721 | 234 | * @} |
bogdanm | 85:024bf7f99721 | 235 | */ |
bogdanm | 85:024bf7f99721 | 236 | |
bogdanm | 85:024bf7f99721 | 237 | |
bogdanm | 85:024bf7f99721 | 238 | /* Exported functions --------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 239 | /* I/O operation functions ***************************************************/ |
bogdanm | 85:024bf7f99721 | 240 | |
bogdanm | 85:024bf7f99721 | 241 | #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \ |
bogdanm | 85:024bf7f99721 | 242 | defined (STM32F071xB) || defined (STM32F072xB) |
bogdanm | 85:024bf7f99721 | 243 | |
bogdanm | 85:024bf7f99721 | 244 | void HAL_PWR_PVD_IRQHandler(void); |
bogdanm | 85:024bf7f99721 | 245 | void HAL_PWR_PVDCallback(void); |
bogdanm | 85:024bf7f99721 | 246 | |
bogdanm | 85:024bf7f99721 | 247 | /* Peripheral Control functions **********************************************/ |
bogdanm | 85:024bf7f99721 | 248 | void HAL_PWR_PVDConfig(PWR_PVDTypeDef *sConfigPVD); |
bogdanm | 85:024bf7f99721 | 249 | void HAL_PWR_EnablePVD(void); |
bogdanm | 85:024bf7f99721 | 250 | void HAL_PWR_DisablePVD(void); |
bogdanm | 85:024bf7f99721 | 251 | |
bogdanm | 85:024bf7f99721 | 252 | #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */ |
bogdanm | 85:024bf7f99721 | 253 | /* defined (STM32F071xB) || defined (STM32F072xB) */ |
bogdanm | 85:024bf7f99721 | 254 | |
bogdanm | 85:024bf7f99721 | 255 | /** |
bogdanm | 85:024bf7f99721 | 256 | * @} |
bogdanm | 85:024bf7f99721 | 257 | */ |
bogdanm | 85:024bf7f99721 | 258 | |
bogdanm | 85:024bf7f99721 | 259 | /** |
bogdanm | 85:024bf7f99721 | 260 | * @} |
bogdanm | 85:024bf7f99721 | 261 | */ |
bogdanm | 85:024bf7f99721 | 262 | |
bogdanm | 85:024bf7f99721 | 263 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 264 | } |
bogdanm | 85:024bf7f99721 | 265 | #endif |
bogdanm | 85:024bf7f99721 | 266 | |
bogdanm | 85:024bf7f99721 | 267 | #endif /* __STM32F0xx_HAL_PWR_EX_H */ |
bogdanm | 85:024bf7f99721 | 268 | |
bogdanm | 85:024bf7f99721 | 269 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |