Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
100:cbbeb26dbd92
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 100:cbbeb26dbd92 1 /**
Kojto 100:cbbeb26dbd92 2 ******************************************************************************
Kojto 100:cbbeb26dbd92 3 * @file stm32f3xx_hal_pwr_ex.h
Kojto 100:cbbeb26dbd92 4 * @author MCD Application Team
Kojto 100:cbbeb26dbd92 5 * @version V1.1.0
Kojto 100:cbbeb26dbd92 6 * @date 12-Sept-2014
Kojto 100:cbbeb26dbd92 7 * @brief Header file of PWR HAL Extended module.
Kojto 100:cbbeb26dbd92 8 ******************************************************************************
Kojto 100:cbbeb26dbd92 9 * @attention
Kojto 100:cbbeb26dbd92 10 *
Kojto 100:cbbeb26dbd92 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
Kojto 100:cbbeb26dbd92 12 *
Kojto 100:cbbeb26dbd92 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 100:cbbeb26dbd92 14 * are permitted provided that the following conditions are met:
Kojto 100:cbbeb26dbd92 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 100:cbbeb26dbd92 16 * this list of conditions and the following disclaimer.
Kojto 100:cbbeb26dbd92 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 100:cbbeb26dbd92 18 * this list of conditions and the following disclaimer in the documentation
Kojto 100:cbbeb26dbd92 19 * and/or other materials provided with the distribution.
Kojto 100:cbbeb26dbd92 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 100:cbbeb26dbd92 21 * may be used to endorse or promote products derived from this software
Kojto 100:cbbeb26dbd92 22 * without specific prior written permission.
Kojto 100:cbbeb26dbd92 23 *
Kojto 100:cbbeb26dbd92 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 100:cbbeb26dbd92 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 100:cbbeb26dbd92 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 100:cbbeb26dbd92 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 100:cbbeb26dbd92 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 100:cbbeb26dbd92 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 100:cbbeb26dbd92 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 100:cbbeb26dbd92 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 100:cbbeb26dbd92 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 100:cbbeb26dbd92 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 100:cbbeb26dbd92 34 *
Kojto 100:cbbeb26dbd92 35 ******************************************************************************
Kojto 100:cbbeb26dbd92 36 */
Kojto 100:cbbeb26dbd92 37
Kojto 100:cbbeb26dbd92 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 100:cbbeb26dbd92 39 #ifndef __STM32F3xx_HAL_PWR_EX_H
Kojto 100:cbbeb26dbd92 40 #define __STM32F3xx_HAL_PWR_EX_H
Kojto 100:cbbeb26dbd92 41
Kojto 100:cbbeb26dbd92 42 #ifdef __cplusplus
Kojto 100:cbbeb26dbd92 43 extern "C" {
Kojto 100:cbbeb26dbd92 44 #endif
Kojto 100:cbbeb26dbd92 45
Kojto 100:cbbeb26dbd92 46 /* Includes ------------------------------------------------------------------*/
Kojto 100:cbbeb26dbd92 47 #include "stm32f3xx_hal_def.h"
Kojto 100:cbbeb26dbd92 48
Kojto 100:cbbeb26dbd92 49 /** @addtogroup STM32F3xx_HAL_Driver
Kojto 100:cbbeb26dbd92 50 * @{
Kojto 100:cbbeb26dbd92 51 */
Kojto 100:cbbeb26dbd92 52
Kojto 100:cbbeb26dbd92 53 /** @addtogroup PWREx
Kojto 100:cbbeb26dbd92 54 * @{
Kojto 100:cbbeb26dbd92 55 */
Kojto 100:cbbeb26dbd92 56
Kojto 100:cbbeb26dbd92 57 /* Exported types ------------------------------------------------------------*/
Kojto 100:cbbeb26dbd92 58
Kojto 100:cbbeb26dbd92 59 /** @defgroup PWREx_Exported_Types PWR Extended Exported Types
Kojto 100:cbbeb26dbd92 60 * @{
Kojto 100:cbbeb26dbd92 61 */
Kojto 100:cbbeb26dbd92 62 #if defined(STM32F302xE) || defined(STM32F303xE) || \
Kojto 100:cbbeb26dbd92 63 defined(STM32F302xC) || defined(STM32F303xC) || \
Kojto 100:cbbeb26dbd92 64 defined(STM32F303x8) || defined(STM32F334x8) || \
Kojto 100:cbbeb26dbd92 65 defined(STM32F301x8) || defined(STM32F302x8) || \
Kojto 100:cbbeb26dbd92 66 defined(STM32F373xC)
Kojto 100:cbbeb26dbd92 67 /**
Kojto 100:cbbeb26dbd92 68 * @brief PWR PVD configuration structure definition
Kojto 100:cbbeb26dbd92 69 */
Kojto 100:cbbeb26dbd92 70 typedef struct
Kojto 100:cbbeb26dbd92 71 {
Kojto 100:cbbeb26dbd92 72 uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level
Kojto 100:cbbeb26dbd92 73 This parameter can be a value of @ref PWREx_PVD_detection_level */
Kojto 100:cbbeb26dbd92 74
Kojto 100:cbbeb26dbd92 75 uint32_t Mode; /*!< Mode: Specifies the operating mode for the selected pins.
Kojto 100:cbbeb26dbd92 76 This parameter can be a value of @ref PWREx_PVD_Mode */
Kojto 100:cbbeb26dbd92 77 }PWR_PVDTypeDef;
Kojto 100:cbbeb26dbd92 78 #endif /* STM32F302xE || STM32F303xE || */
Kojto 100:cbbeb26dbd92 79 /* STM32F302xC || STM32F303xC || */
Kojto 100:cbbeb26dbd92 80 /* STM32F303x8 || STM32F334x8 || */
Kojto 100:cbbeb26dbd92 81 /* STM32F301x8 || STM32F302x8 || */
Kojto 100:cbbeb26dbd92 82 /* STM32F373xC */
Kojto 100:cbbeb26dbd92 83
Kojto 100:cbbeb26dbd92 84 /**
Kojto 100:cbbeb26dbd92 85 * @}
Kojto 100:cbbeb26dbd92 86 */
Kojto 100:cbbeb26dbd92 87
Kojto 100:cbbeb26dbd92 88 /* Exported constants --------------------------------------------------------*/
Kojto 100:cbbeb26dbd92 89 /** @defgroup PWREx_Exported_Constants PWR Extended Exported Constants
Kojto 100:cbbeb26dbd92 90 * @{
Kojto 100:cbbeb26dbd92 91 */
Kojto 100:cbbeb26dbd92 92
Kojto 100:cbbeb26dbd92 93 #if defined(STM32F302xE) || defined(STM32F303xE) || \
Kojto 100:cbbeb26dbd92 94 defined(STM32F302xC) || defined(STM32F303xC) || \
Kojto 100:cbbeb26dbd92 95 defined(STM32F303x8) || defined(STM32F334x8) || \
Kojto 100:cbbeb26dbd92 96 defined(STM32F301x8) || defined(STM32F302x8) || \
Kojto 100:cbbeb26dbd92 97 defined(STM32F373xC)
Kojto 100:cbbeb26dbd92 98
Kojto 100:cbbeb26dbd92 99 /** @defgroup PWREx_PVD_detection_level PWR Extended PVD detection level
Kojto 100:cbbeb26dbd92 100 * @{
Kojto 100:cbbeb26dbd92 101 */
Kojto 100:cbbeb26dbd92 102 #define PWR_PVDLEVEL_0 PWR_CR_PLS_LEV0
Kojto 100:cbbeb26dbd92 103 #define PWR_PVDLEVEL_1 PWR_CR_PLS_LEV1
Kojto 100:cbbeb26dbd92 104 #define PWR_PVDLEVEL_2 PWR_CR_PLS_LEV2
Kojto 100:cbbeb26dbd92 105 #define PWR_PVDLEVEL_3 PWR_CR_PLS_LEV3
Kojto 100:cbbeb26dbd92 106 #define PWR_PVDLEVEL_4 PWR_CR_PLS_LEV4
Kojto 100:cbbeb26dbd92 107 #define PWR_PVDLEVEL_5 PWR_CR_PLS_LEV5
Kojto 100:cbbeb26dbd92 108 #define PWR_PVDLEVEL_6 PWR_CR_PLS_LEV6
Kojto 100:cbbeb26dbd92 109 #define PWR_PVDLEVEL_7 PWR_CR_PLS_LEV7
Kojto 100:cbbeb26dbd92 110 #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \
Kojto 100:cbbeb26dbd92 111 ((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \
Kojto 100:cbbeb26dbd92 112 ((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \
Kojto 100:cbbeb26dbd92 113 ((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7))
Kojto 100:cbbeb26dbd92 114 /**
Kojto 100:cbbeb26dbd92 115 * @}
Kojto 100:cbbeb26dbd92 116 */
Kojto 100:cbbeb26dbd92 117
Kojto 100:cbbeb26dbd92 118 /** @defgroup PWREx_PVD_Mode PWR Extended PVD Mode
Kojto 100:cbbeb26dbd92 119 * @{
Kojto 100:cbbeb26dbd92 120 */
Kojto 100:cbbeb26dbd92 121 #define PWR_PVD_MODE_NORMAL ((uint32_t)0x00000000) /*!< basic mode is used */
Kojto 100:cbbeb26dbd92 122 #define PWR_PVD_MODE_IT_RISING ((uint32_t)0x00010001) /*!< External Interrupt Mode with Rising edge trigger detection */
Kojto 100:cbbeb26dbd92 123 #define PWR_PVD_MODE_IT_FALLING ((uint32_t)0x00010002) /*!< External Interrupt Mode with Falling edge trigger detection */
Kojto 100:cbbeb26dbd92 124 #define PWR_PVD_MODE_IT_RISING_FALLING ((uint32_t)0x00010003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
Kojto 100:cbbeb26dbd92 125 #define PWR_PVD_MODE_EVENT_RISING ((uint32_t)0x00020001) /*!< Event Mode with Rising edge trigger detection */
Kojto 100:cbbeb26dbd92 126 #define PWR_PVD_MODE_EVENT_FALLING ((uint32_t)0x00020002) /*!< Event Mode with Falling edge trigger detection */
Kojto 100:cbbeb26dbd92 127 #define PWR_PVD_MODE_EVENT_RISING_FALLING ((uint32_t)0x00020003) /*!< Event Mode with Rising/Falling edge trigger detection */
Kojto 100:cbbeb26dbd92 128
Kojto 100:cbbeb26dbd92 129 #define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING)|| ((MODE) == PWR_PVD_MODE_IT_FALLING) || \
Kojto 100:cbbeb26dbd92 130 ((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING) || \
Kojto 100:cbbeb26dbd92 131 ((MODE) == PWR_PVD_MODE_EVENT_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) || \
Kojto 100:cbbeb26dbd92 132 ((MODE) == PWR_PVD_MODE_NORMAL))
Kojto 100:cbbeb26dbd92 133 /**
Kojto 100:cbbeb26dbd92 134 * @}
Kojto 100:cbbeb26dbd92 135 */
Kojto 100:cbbeb26dbd92 136
Kojto 100:cbbeb26dbd92 137 #define PWR_EXTI_LINE_PVD ((uint32_t)0x00010000) /*!< External interrupt line 16 Connected to the PVD EXTI Line */
Kojto 100:cbbeb26dbd92 138
Kojto 100:cbbeb26dbd92 139 #endif /* STM32F302xE || STM32F303xE || */
Kojto 100:cbbeb26dbd92 140 /* STM32F302xC || STM32F303xC || */
Kojto 100:cbbeb26dbd92 141 /* STM32F303x8 || STM32F334x8 || */
Kojto 100:cbbeb26dbd92 142 /* STM32F301x8 || STM32F302x8 || */
Kojto 100:cbbeb26dbd92 143 /* STM32F373xC */
Kojto 100:cbbeb26dbd92 144
Kojto 100:cbbeb26dbd92 145 #if defined(STM32F373xC) || defined(STM32F378xx)
Kojto 100:cbbeb26dbd92 146 /** @defgroup PWREx_SDADC_ANALOGx PWR Extended SDADC ANALOGx
Kojto 100:cbbeb26dbd92 147 * @{
Kojto 100:cbbeb26dbd92 148 */
Kojto 100:cbbeb26dbd92 149 #define PWR_SDADC_ANALOG1 ((uint32_t)PWR_CR_SDADC1EN)
Kojto 100:cbbeb26dbd92 150 #define PWR_SDADC_ANALOG2 ((uint32_t)PWR_CR_SDADC2EN)
Kojto 100:cbbeb26dbd92 151 #define PWR_SDADC_ANALOG3 ((uint32_t)PWR_CR_SDADC3EN)
Kojto 100:cbbeb26dbd92 152 #define IS_PWR_SDADC_ANALOG(SDADC) (((SDADC) == PWR_SDADC_ANALOG1) || \
Kojto 100:cbbeb26dbd92 153 ((SDADC) == PWR_SDADC_ANALOG2) || \
Kojto 100:cbbeb26dbd92 154 ((SDADC) == PWR_SDADC_ANALOG3))
Kojto 100:cbbeb26dbd92 155 /**
Kojto 100:cbbeb26dbd92 156 * @}
Kojto 100:cbbeb26dbd92 157 */
Kojto 100:cbbeb26dbd92 158 #endif /* STM32F373xC || STM32F378xx */
Kojto 100:cbbeb26dbd92 159
Kojto 100:cbbeb26dbd92 160 /**
Kojto 100:cbbeb26dbd92 161 * @}
Kojto 100:cbbeb26dbd92 162 */
Kojto 100:cbbeb26dbd92 163
Kojto 100:cbbeb26dbd92 164 /* Exported macro ------------------------------------------------------------*/
Kojto 100:cbbeb26dbd92 165 /** @defgroup PWREx_Exported_Macros PWR Extended Exported Macros
Kojto 100:cbbeb26dbd92 166 * @{
Kojto 100:cbbeb26dbd92 167 */
Kojto 100:cbbeb26dbd92 168
Kojto 100:cbbeb26dbd92 169 #if defined(STM32F302xE) || defined(STM32F303xE) || \
Kojto 100:cbbeb26dbd92 170 defined(STM32F302xC) || defined(STM32F303xC) || \
Kojto 100:cbbeb26dbd92 171 defined(STM32F303x8) || defined(STM32F334x8) || \
Kojto 100:cbbeb26dbd92 172 defined(STM32F301x8) || defined(STM32F302x8) || \
Kojto 100:cbbeb26dbd92 173 defined(STM32F373xC)
Kojto 100:cbbeb26dbd92 174
Kojto 100:cbbeb26dbd92 175 /**
Kojto 100:cbbeb26dbd92 176 * @brief Enable interrupt on PVD Exti Line 16.
Kojto 100:cbbeb26dbd92 177 * @retval None.
Kojto 100:cbbeb26dbd92 178 */
Kojto 100:cbbeb26dbd92 179 #define __HAL_PWR_PVD_EXTI_ENABLE_IT() (EXTI->IMR |= (PWR_EXTI_LINE_PVD))
Kojto 100:cbbeb26dbd92 180
Kojto 100:cbbeb26dbd92 181 /**
Kojto 100:cbbeb26dbd92 182 * @brief Disable interrupt on PVD Exti Line 16.
Kojto 100:cbbeb26dbd92 183 * @retval None.
Kojto 100:cbbeb26dbd92 184 */
Kojto 100:cbbeb26dbd92 185 #define __HAL_PWR_PVD_EXTI_DISABLE_IT() (EXTI->IMR &= ~(PWR_EXTI_LINE_PVD))
Kojto 100:cbbeb26dbd92 186
Kojto 100:cbbeb26dbd92 187 /**
Kojto 100:cbbeb26dbd92 188 * @brief Generate a Software interrupt on selected EXTI line.
Kojto 100:cbbeb26dbd92 189 * @retval None.
Kojto 100:cbbeb26dbd92 190 */
Kojto 100:cbbeb26dbd92 191 #define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() (EXTI->SWIER |= (PWR_EXTI_LINE_PVD))
Kojto 100:cbbeb26dbd92 192
Kojto 100:cbbeb26dbd92 193 /**
Kojto 100:cbbeb26dbd92 194 * @brief Enable event on PVD Exti Line 16.
Kojto 100:cbbeb26dbd92 195 * @retval None.
Kojto 100:cbbeb26dbd92 196 */
Kojto 100:cbbeb26dbd92 197 #define __HAL_PWR_PVD_EXTI_ENABLE_EVENT() (EXTI->EMR |= (PWR_EXTI_LINE_PVD))
Kojto 100:cbbeb26dbd92 198
Kojto 100:cbbeb26dbd92 199 /**
Kojto 100:cbbeb26dbd92 200 * @brief Disable event on PVD Exti Line 16.
Kojto 100:cbbeb26dbd92 201 * @retval None.
Kojto 100:cbbeb26dbd92 202 */
Kojto 100:cbbeb26dbd92 203 #define __HAL_PWR_PVD_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(PWR_EXTI_LINE_PVD))
Kojto 100:cbbeb26dbd92 204
Kojto 100:cbbeb26dbd92 205 /**
Kojto 100:cbbeb26dbd92 206 * @brief PVD EXTI line configuration: clear falling edge trigger and set rising edge.
Kojto 100:cbbeb26dbd92 207 * @retval None.
Kojto 100:cbbeb26dbd92 208 */
Kojto 100:cbbeb26dbd92 209 #define __HAL_PWR_PVD_EXTI_CLEAR_EGDE_TRIGGER() EXTI->FTSR &= ~(PWR_EXTI_LINE_PVD); \
Kojto 100:cbbeb26dbd92 210 EXTI->RTSR &= ~(PWR_EXTI_LINE_PVD)
Kojto 100:cbbeb26dbd92 211
Kojto 100:cbbeb26dbd92 212 /**
Kojto 100:cbbeb26dbd92 213 * @brief PVD EXTI line configuration: set falling edge trigger.
Kojto 100:cbbeb26dbd92 214 * @retval None.
Kojto 100:cbbeb26dbd92 215 */
Kojto 100:cbbeb26dbd92 216 #define __HAL_PWR_PVD_EXTI_SET_FALLING_EGDE_TRIGGER() EXTI->FTSR |= (PWR_EXTI_LINE_PVD)
Kojto 100:cbbeb26dbd92 217
Kojto 100:cbbeb26dbd92 218 /**
Kojto 100:cbbeb26dbd92 219 * @brief PVD EXTI line configuration: set rising edge trigger.
Kojto 100:cbbeb26dbd92 220 * @retval None.
Kojto 100:cbbeb26dbd92 221 */
Kojto 100:cbbeb26dbd92 222 #define __HAL_PWR_PVD_EXTI_SET_RISING_EDGE_TRIGGER() EXTI->RTSR |= (PWR_EXTI_LINE_PVD)
Kojto 100:cbbeb26dbd92 223
Kojto 100:cbbeb26dbd92 224 /**
Kojto 100:cbbeb26dbd92 225 * @brief Check whether the specified PVD EXTI interrupt flag is set or not.
Kojto 100:cbbeb26dbd92 226 * @retval EXTI PVD Line Status.
Kojto 100:cbbeb26dbd92 227 */
Kojto 100:cbbeb26dbd92 228 #define __HAL_PWR_PVD_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_PVD))
Kojto 100:cbbeb26dbd92 229
Kojto 100:cbbeb26dbd92 230 /**
Kojto 100:cbbeb26dbd92 231 * @brief Clear the PVD EXTI flag.
Kojto 100:cbbeb26dbd92 232 * @retval None.
Kojto 100:cbbeb26dbd92 233 */
Kojto 100:cbbeb26dbd92 234 #define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_PVD))
Kojto 100:cbbeb26dbd92 235
Kojto 100:cbbeb26dbd92 236 #endif /* STM32F302xE || STM32F303xE || */
Kojto 100:cbbeb26dbd92 237 /* STM32F302xC || STM32F303xC || */
Kojto 100:cbbeb26dbd92 238 /* STM32F303x8 || STM32F334x8 || */
Kojto 100:cbbeb26dbd92 239 /* STM32F301x8 || STM32F302x8 || */
Kojto 100:cbbeb26dbd92 240 /* STM32F373xC */
Kojto 100:cbbeb26dbd92 241
Kojto 100:cbbeb26dbd92 242 /**
Kojto 100:cbbeb26dbd92 243 * @}
Kojto 100:cbbeb26dbd92 244 */
Kojto 100:cbbeb26dbd92 245
Kojto 100:cbbeb26dbd92 246 /* Exported functions --------------------------------------------------------*/
Kojto 100:cbbeb26dbd92 247
Kojto 100:cbbeb26dbd92 248 /** @addtogroup PWREx_Exported_Functions PWR Extended Exported Functions
Kojto 100:cbbeb26dbd92 249 * @{
Kojto 100:cbbeb26dbd92 250 */
Kojto 100:cbbeb26dbd92 251
Kojto 100:cbbeb26dbd92 252 /** @addtogroup PWREx_Exported_Functions_Group1 Peripheral Extended Control Functions
Kojto 100:cbbeb26dbd92 253 * @{
Kojto 100:cbbeb26dbd92 254 */
Kojto 100:cbbeb26dbd92 255 /* Peripheral Extended control functions **************************************/
Kojto 100:cbbeb26dbd92 256 #if defined(STM32F302xE) || defined(STM32F303xE) || \
Kojto 100:cbbeb26dbd92 257 defined(STM32F302xC) || defined(STM32F303xC) || \
Kojto 100:cbbeb26dbd92 258 defined(STM32F303x8) || defined(STM32F334x8) || \
Kojto 100:cbbeb26dbd92 259 defined(STM32F301x8) || defined(STM32F302x8) || \
Kojto 100:cbbeb26dbd92 260 defined(STM32F373xC)
Kojto 100:cbbeb26dbd92 261 void HAL_PWR_PVDConfig(PWR_PVDTypeDef *sConfigPVD);
Kojto 100:cbbeb26dbd92 262 void HAL_PWR_EnablePVD(void);
Kojto 100:cbbeb26dbd92 263 void HAL_PWR_DisablePVD(void);
Kojto 100:cbbeb26dbd92 264 void HAL_PWR_PVD_IRQHandler(void);
Kojto 100:cbbeb26dbd92 265 void HAL_PWR_PVDCallback(void);
Kojto 100:cbbeb26dbd92 266 #endif /* STM32F302xE || STM32F303xE || */
Kojto 100:cbbeb26dbd92 267 /* STM32F302xC || STM32F303xC || */
Kojto 100:cbbeb26dbd92 268 /* STM32F303x8 || STM32F334x8 || */
Kojto 100:cbbeb26dbd92 269 /* STM32F301x8 || STM32F302x8 || */
Kojto 100:cbbeb26dbd92 270 /* STM32F373xC */
Kojto 100:cbbeb26dbd92 271
Kojto 100:cbbeb26dbd92 272 #if defined(STM32F373xC) || defined(STM32F378xx)
Kojto 100:cbbeb26dbd92 273 void HAL_PWREx_EnableSDADCAnalog(uint32_t Analogx);
Kojto 100:cbbeb26dbd92 274 void HAL_PWREx_DisableSDADCAnalog(uint32_t Analogx);
Kojto 100:cbbeb26dbd92 275 #endif /* STM32F373xC || STM32F378xx */
Kojto 100:cbbeb26dbd92 276
Kojto 100:cbbeb26dbd92 277 /**
Kojto 100:cbbeb26dbd92 278 * @}
Kojto 100:cbbeb26dbd92 279 */
Kojto 100:cbbeb26dbd92 280
Kojto 100:cbbeb26dbd92 281 /**
Kojto 100:cbbeb26dbd92 282 * @}
Kojto 100:cbbeb26dbd92 283 */
Kojto 100:cbbeb26dbd92 284
Kojto 100:cbbeb26dbd92 285 /**
Kojto 100:cbbeb26dbd92 286 * @}
Kojto 100:cbbeb26dbd92 287 */
Kojto 100:cbbeb26dbd92 288
Kojto 100:cbbeb26dbd92 289 /**
Kojto 100:cbbeb26dbd92 290 * @}
Kojto 100:cbbeb26dbd92 291 */
Kojto 100:cbbeb26dbd92 292
Kojto 100:cbbeb26dbd92 293 #ifdef __cplusplus
Kojto 100:cbbeb26dbd92 294 }
Kojto 100:cbbeb26dbd92 295 #endif
Kojto 100:cbbeb26dbd92 296
Kojto 100:cbbeb26dbd92 297 #endif /* __STM32F3xx_HAL_PWR_EX_H */
Kojto 100:cbbeb26dbd92 298
Kojto 100:cbbeb26dbd92 299 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/