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
TARGET_DISCO_F746NG/stm32f7xx_hal_pwr_ex.h@116:c0f6e94411f5, 2016-03-15 (annotated)
- Committer:
- Kojto
- Date:
- Tue Mar 15 14:34:00 2016 +0000
- Revision:
- 116:c0f6e94411f5
- Parent:
- 107:4f6c30876dfa
Release 116 of the mbed library
Changes:
- new targets - NUCLEO_L073RZ
- fixes to IOTSS BEID platform
- LPC824, LPC1549 and LPC11U68 - fix PWMOut SCT bugs
- STM32F7 - Cube driver
- STM32F4 - add RTC LSI macro, defined as 0
- STM32F3 - fix multiple ADC clock initialization
- retarget - binary mode fix for GCC
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 107:4f6c30876dfa | 1 | /** |
Kojto | 107:4f6c30876dfa | 2 | ****************************************************************************** |
Kojto | 107:4f6c30876dfa | 3 | * @file stm32f7xx_hal_pwr_ex.h |
Kojto | 107:4f6c30876dfa | 4 | * @author MCD Application Team |
Kojto | 116:c0f6e94411f5 | 5 | * @version V1.0.4 |
Kojto | 116:c0f6e94411f5 | 6 | * @date 09-December-2015 |
Kojto | 107:4f6c30876dfa | 7 | * @brief Header file of PWR HAL Extension module. |
Kojto | 107:4f6c30876dfa | 8 | ****************************************************************************** |
Kojto | 107:4f6c30876dfa | 9 | * @attention |
Kojto | 107:4f6c30876dfa | 10 | * |
Kojto | 107:4f6c30876dfa | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
Kojto | 107:4f6c30876dfa | 12 | * |
Kojto | 107:4f6c30876dfa | 13 | * Redistribution and use in source and binary forms, with or without modification, |
Kojto | 107:4f6c30876dfa | 14 | * are permitted provided that the following conditions are met: |
Kojto | 107:4f6c30876dfa | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 107:4f6c30876dfa | 16 | * this list of conditions and the following disclaimer. |
Kojto | 107:4f6c30876dfa | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 107:4f6c30876dfa | 18 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 107:4f6c30876dfa | 19 | * and/or other materials provided with the distribution. |
Kojto | 107:4f6c30876dfa | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 107:4f6c30876dfa | 21 | * may be used to endorse or promote products derived from this software |
Kojto | 107:4f6c30876dfa | 22 | * without specific prior written permission. |
Kojto | 107:4f6c30876dfa | 23 | * |
Kojto | 107:4f6c30876dfa | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 107:4f6c30876dfa | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 107:4f6c30876dfa | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 107:4f6c30876dfa | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 107:4f6c30876dfa | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 107:4f6c30876dfa | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 107:4f6c30876dfa | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 107:4f6c30876dfa | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 107:4f6c30876dfa | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 107:4f6c30876dfa | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 107:4f6c30876dfa | 34 | * |
Kojto | 107:4f6c30876dfa | 35 | ****************************************************************************** |
Kojto | 107:4f6c30876dfa | 36 | */ |
Kojto | 107:4f6c30876dfa | 37 | |
Kojto | 107:4f6c30876dfa | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 39 | #ifndef __STM32F7xx_HAL_PWR_EX_H |
Kojto | 107:4f6c30876dfa | 40 | #define __STM32F7xx_HAL_PWR_EX_H |
Kojto | 107:4f6c30876dfa | 41 | |
Kojto | 107:4f6c30876dfa | 42 | #ifdef __cplusplus |
Kojto | 107:4f6c30876dfa | 43 | extern "C" { |
Kojto | 107:4f6c30876dfa | 44 | #endif |
Kojto | 107:4f6c30876dfa | 45 | |
Kojto | 107:4f6c30876dfa | 46 | /* Includes ------------------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 47 | #include "stm32f7xx_hal_def.h" |
Kojto | 107:4f6c30876dfa | 48 | |
Kojto | 107:4f6c30876dfa | 49 | /** @addtogroup STM32F7xx_HAL_Driver |
Kojto | 107:4f6c30876dfa | 50 | * @{ |
Kojto | 107:4f6c30876dfa | 51 | */ |
Kojto | 107:4f6c30876dfa | 52 | |
Kojto | 107:4f6c30876dfa | 53 | /** @addtogroup PWREx |
Kojto | 107:4f6c30876dfa | 54 | * @{ |
Kojto | 107:4f6c30876dfa | 55 | */ |
Kojto | 107:4f6c30876dfa | 56 | |
Kojto | 107:4f6c30876dfa | 57 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 58 | /* Exported constants --------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 59 | /** @defgroup PWREx_Exported_Constants PWREx Exported Constants |
Kojto | 107:4f6c30876dfa | 60 | * @{ |
Kojto | 107:4f6c30876dfa | 61 | */ |
Kojto | 107:4f6c30876dfa | 62 | /** @defgroup PWREx_WakeUp_Pins PWREx Wake Up Pins |
Kojto | 107:4f6c30876dfa | 63 | * @{ |
Kojto | 107:4f6c30876dfa | 64 | */ |
Kojto | 107:4f6c30876dfa | 65 | #define PWR_WAKEUP_PIN1 PWR_CSR2_EWUP1 |
Kojto | 107:4f6c30876dfa | 66 | #define PWR_WAKEUP_PIN2 PWR_CSR2_EWUP2 |
Kojto | 107:4f6c30876dfa | 67 | #define PWR_WAKEUP_PIN3 PWR_CSR2_EWUP3 |
Kojto | 107:4f6c30876dfa | 68 | #define PWR_WAKEUP_PIN4 PWR_CSR2_EWUP4 |
Kojto | 107:4f6c30876dfa | 69 | #define PWR_WAKEUP_PIN5 PWR_CSR2_EWUP5 |
Kojto | 107:4f6c30876dfa | 70 | #define PWR_WAKEUP_PIN6 PWR_CSR2_EWUP6 |
Kojto | 107:4f6c30876dfa | 71 | #define PWR_WAKEUP_PIN1_HIGH PWR_CSR2_EWUP1 |
Kojto | 107:4f6c30876dfa | 72 | #define PWR_WAKEUP_PIN2_HIGH PWR_CSR2_EWUP2 |
Kojto | 107:4f6c30876dfa | 73 | #define PWR_WAKEUP_PIN3_HIGH PWR_CSR2_EWUP3 |
Kojto | 107:4f6c30876dfa | 74 | #define PWR_WAKEUP_PIN4_HIGH PWR_CSR2_EWUP4 |
Kojto | 107:4f6c30876dfa | 75 | #define PWR_WAKEUP_PIN5_HIGH PWR_CSR2_EWUP5 |
Kojto | 107:4f6c30876dfa | 76 | #define PWR_WAKEUP_PIN6_HIGH PWR_CSR2_EWUP6 |
Kojto | 107:4f6c30876dfa | 77 | #define PWR_WAKEUP_PIN1_LOW (uint32_t)((PWR_CR2_WUPP1<<6) | PWR_CSR2_EWUP1) |
Kojto | 107:4f6c30876dfa | 78 | #define PWR_WAKEUP_PIN2_LOW (uint32_t)((PWR_CR2_WUPP2<<6) | PWR_CSR2_EWUP2) |
Kojto | 107:4f6c30876dfa | 79 | #define PWR_WAKEUP_PIN3_LOW (uint32_t)((PWR_CR2_WUPP3<<6) | PWR_CSR2_EWUP3) |
Kojto | 107:4f6c30876dfa | 80 | #define PWR_WAKEUP_PIN4_LOW (uint32_t)((PWR_CR2_WUPP4<<6) | PWR_CSR2_EWUP4) |
Kojto | 107:4f6c30876dfa | 81 | #define PWR_WAKEUP_PIN5_LOW (uint32_t)((PWR_CR2_WUPP5<<6) | PWR_CSR2_EWUP5) |
Kojto | 107:4f6c30876dfa | 82 | #define PWR_WAKEUP_PIN6_LOW (uint32_t)((PWR_CR2_WUPP6<<6) | PWR_CSR2_EWUP6) |
Kojto | 107:4f6c30876dfa | 83 | |
Kojto | 107:4f6c30876dfa | 84 | /** |
Kojto | 107:4f6c30876dfa | 85 | * @} |
Kojto | 107:4f6c30876dfa | 86 | */ |
Kojto | 107:4f6c30876dfa | 87 | |
Kojto | 107:4f6c30876dfa | 88 | /** @defgroup PWREx_Regulator_state_in_UnderDrive_mode PWREx Regulator state in UnderDrive mode |
Kojto | 107:4f6c30876dfa | 89 | * @{ |
Kojto | 107:4f6c30876dfa | 90 | */ |
Kojto | 107:4f6c30876dfa | 91 | #define PWR_MAINREGULATOR_UNDERDRIVE_ON PWR_CR1_MRUDS |
Kojto | 107:4f6c30876dfa | 92 | #define PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON ((uint32_t)(PWR_CR1_LPDS | PWR_CR1_LPUDS)) |
Kojto | 107:4f6c30876dfa | 93 | /** |
Kojto | 107:4f6c30876dfa | 94 | * @} |
Kojto | 107:4f6c30876dfa | 95 | */ |
Kojto | 107:4f6c30876dfa | 96 | |
Kojto | 107:4f6c30876dfa | 97 | /** @defgroup PWREx_Over_Under_Drive_Flag PWREx Over Under Drive Flag |
Kojto | 107:4f6c30876dfa | 98 | * @{ |
Kojto | 107:4f6c30876dfa | 99 | */ |
Kojto | 107:4f6c30876dfa | 100 | #define PWR_FLAG_ODRDY PWR_CSR1_ODRDY |
Kojto | 107:4f6c30876dfa | 101 | #define PWR_FLAG_ODSWRDY PWR_CSR1_ODSWRDY |
Kojto | 107:4f6c30876dfa | 102 | #define PWR_FLAG_UDRDY PWR_CSR1_UDSWRDY |
Kojto | 107:4f6c30876dfa | 103 | /** |
Kojto | 107:4f6c30876dfa | 104 | * @} |
Kojto | 107:4f6c30876dfa | 105 | */ |
Kojto | 107:4f6c30876dfa | 106 | |
Kojto | 107:4f6c30876dfa | 107 | /** @defgroup PWREx_Wakeup_Pins_Flag PWREx Wake Up Pin Flags |
Kojto | 107:4f6c30876dfa | 108 | * @{ |
Kojto | 107:4f6c30876dfa | 109 | */ |
Kojto | 107:4f6c30876dfa | 110 | #define PWR_WAKEUP_PIN_FLAG1 PWR_CSR2_WUPF1 |
Kojto | 107:4f6c30876dfa | 111 | #define PWR_WAKEUP_PIN_FLAG2 PWR_CSR2_WUPF2 |
Kojto | 107:4f6c30876dfa | 112 | #define PWR_WAKEUP_PIN_FLAG3 PWR_CSR2_WUPF3 |
Kojto | 107:4f6c30876dfa | 113 | #define PWR_WAKEUP_PIN_FLAG4 PWR_CSR2_WUPF4 |
Kojto | 107:4f6c30876dfa | 114 | #define PWR_WAKEUP_PIN_FLAG5 PWR_CSR2_WUPF5 |
Kojto | 107:4f6c30876dfa | 115 | #define PWR_WAKEUP_PIN_FLAG6 PWR_CSR2_WUPF6 |
Kojto | 107:4f6c30876dfa | 116 | /** |
Kojto | 107:4f6c30876dfa | 117 | * @} |
Kojto | 107:4f6c30876dfa | 118 | */ |
Kojto | 107:4f6c30876dfa | 119 | |
Kojto | 107:4f6c30876dfa | 120 | /** |
Kojto | 107:4f6c30876dfa | 121 | * @} |
Kojto | 107:4f6c30876dfa | 122 | */ |
Kojto | 107:4f6c30876dfa | 123 | |
Kojto | 107:4f6c30876dfa | 124 | /* Exported macro ------------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 125 | /** @defgroup PWREx_Exported_Macro PWREx Exported Macro |
Kojto | 107:4f6c30876dfa | 126 | * @{ |
Kojto | 107:4f6c30876dfa | 127 | */ |
Kojto | 107:4f6c30876dfa | 128 | /** @brief Macros to enable or disable the Over drive mode. |
Kojto | 107:4f6c30876dfa | 129 | */ |
Kojto | 107:4f6c30876dfa | 130 | #define __HAL_PWR_OVERDRIVE_ENABLE() (PWR->CR1 |= (uint32_t)PWR_CR1_ODEN) |
Kojto | 107:4f6c30876dfa | 131 | #define __HAL_PWR_OVERDRIVE_DISABLE() (PWR->CR1 &= (uint32_t)(~PWR_CR1_ODEN)) |
Kojto | 107:4f6c30876dfa | 132 | |
Kojto | 107:4f6c30876dfa | 133 | /** @brief Macros to enable or disable the Over drive switching. |
Kojto | 107:4f6c30876dfa | 134 | */ |
Kojto | 107:4f6c30876dfa | 135 | #define __HAL_PWR_OVERDRIVESWITCHING_ENABLE() (PWR->CR1 |= (uint32_t)PWR_CR1_ODSWEN) |
Kojto | 107:4f6c30876dfa | 136 | #define __HAL_PWR_OVERDRIVESWITCHING_DISABLE() (PWR->CR1 &= (uint32_t)(~PWR_CR1_ODSWEN)) |
Kojto | 107:4f6c30876dfa | 137 | |
Kojto | 107:4f6c30876dfa | 138 | /** @brief Macros to enable or disable the Under drive mode. |
Kojto | 107:4f6c30876dfa | 139 | * @note This mode is enabled only with STOP low power mode. |
Kojto | 107:4f6c30876dfa | 140 | * In this mode, the 1.2V domain is preserved in reduced leakage mode. This |
Kojto | 107:4f6c30876dfa | 141 | * mode is only available when the main regulator or the low power regulator |
Kojto | 107:4f6c30876dfa | 142 | * is in low voltage mode. |
Kojto | 107:4f6c30876dfa | 143 | * @note If the Under-drive mode was enabled, it is automatically disabled after |
Kojto | 107:4f6c30876dfa | 144 | * exiting Stop mode. |
Kojto | 107:4f6c30876dfa | 145 | * When the voltage regulator operates in Under-drive mode, an additional |
Kojto | 107:4f6c30876dfa | 146 | * startup delay is induced when waking up from Stop mode. |
Kojto | 107:4f6c30876dfa | 147 | */ |
Kojto | 107:4f6c30876dfa | 148 | #define __HAL_PWR_UNDERDRIVE_ENABLE() (PWR->CR1 |= (uint32_t)PWR_CR1_UDEN) |
Kojto | 107:4f6c30876dfa | 149 | #define __HAL_PWR_UNDERDRIVE_DISABLE() (PWR->CR1 &= (uint32_t)(~PWR_CR1_UDEN)) |
Kojto | 107:4f6c30876dfa | 150 | |
Kojto | 107:4f6c30876dfa | 151 | /** @brief Check PWR flag is set or not. |
Kojto | 107:4f6c30876dfa | 152 | * @param __FLAG__: specifies the flag to check. |
Kojto | 107:4f6c30876dfa | 153 | * This parameter can be one of the following values: |
Kojto | 107:4f6c30876dfa | 154 | * @arg PWR_FLAG_ODRDY: This flag indicates that the Over-drive mode |
Kojto | 107:4f6c30876dfa | 155 | * is ready |
Kojto | 107:4f6c30876dfa | 156 | * @arg PWR_FLAG_ODSWRDY: This flag indicates that the Over-drive mode |
Kojto | 107:4f6c30876dfa | 157 | * switching is ready |
Kojto | 107:4f6c30876dfa | 158 | * @arg PWR_FLAG_UDRDY: This flag indicates that the Under-drive mode |
Kojto | 107:4f6c30876dfa | 159 | * is enabled in Stop mode |
Kojto | 107:4f6c30876dfa | 160 | * @retval The new state of __FLAG__ (TRUE or FALSE). |
Kojto | 107:4f6c30876dfa | 161 | */ |
Kojto | 107:4f6c30876dfa | 162 | #define __HAL_PWR_GET_ODRUDR_FLAG(__FLAG__) ((PWR->CSR1 & (__FLAG__)) == (__FLAG__)) |
Kojto | 107:4f6c30876dfa | 163 | |
Kojto | 107:4f6c30876dfa | 164 | /** @brief Clear the Under-Drive Ready flag. |
Kojto | 107:4f6c30876dfa | 165 | */ |
Kojto | 107:4f6c30876dfa | 166 | #define __HAL_PWR_CLEAR_ODRUDR_FLAG() (PWR->CSR1 |= PWR_FLAG_UDRDY) |
Kojto | 107:4f6c30876dfa | 167 | |
Kojto | 107:4f6c30876dfa | 168 | /** @brief Check Wake Up flag is set or not. |
Kojto | 107:4f6c30876dfa | 169 | * @param __WUFLAG__: specifies the Wake Up flag to check. |
Kojto | 107:4f6c30876dfa | 170 | * This parameter can be one of the following values: |
Kojto | 107:4f6c30876dfa | 171 | * @arg PWR_WAKEUP_PIN_FLAG1: Wakeup Pin Flag for PA0 |
Kojto | 107:4f6c30876dfa | 172 | * @arg PWR_WAKEUP_PIN_FLAG2: Wakeup Pin Flag for PA2 |
Kojto | 107:4f6c30876dfa | 173 | * @arg PWR_WAKEUP_PIN_FLAG3: Wakeup Pin Flag for PC1 |
Kojto | 107:4f6c30876dfa | 174 | * @arg PWR_WAKEUP_PIN_FLAG4: Wakeup Pin Flag for PC13 |
Kojto | 107:4f6c30876dfa | 175 | * @arg PWR_WAKEUP_PIN_FLAG5: Wakeup Pin Flag for PI8 |
Kojto | 107:4f6c30876dfa | 176 | * @arg PWR_WAKEUP_PIN_FLAG6: Wakeup Pin Flag for PI11 |
Kojto | 107:4f6c30876dfa | 177 | */ |
Kojto | 107:4f6c30876dfa | 178 | #define __HAL_PWR_GET_WAKEUP_FLAG(__WUFLAG__) (PWR->CSR2 & (__WUFLAG__)) |
Kojto | 107:4f6c30876dfa | 179 | |
Kojto | 107:4f6c30876dfa | 180 | /** @brief Clear the WakeUp pins flags. |
Kojto | 107:4f6c30876dfa | 181 | * @param __WUFLAG__: specifies the Wake Up pin flag to clear. |
Kojto | 107:4f6c30876dfa | 182 | * This parameter can be one of the following values: |
Kojto | 107:4f6c30876dfa | 183 | * @arg PWR_WAKEUP_PIN_FLAG1: Wakeup Pin Flag for PA0 |
Kojto | 107:4f6c30876dfa | 184 | * @arg PWR_WAKEUP_PIN_FLAG2: Wakeup Pin Flag for PA2 |
Kojto | 107:4f6c30876dfa | 185 | * @arg PWR_WAKEUP_PIN_FLAG3: Wakeup Pin Flag for PC1 |
Kojto | 107:4f6c30876dfa | 186 | * @arg PWR_WAKEUP_PIN_FLAG4: Wakeup Pin Flag for PC13 |
Kojto | 107:4f6c30876dfa | 187 | * @arg PWR_WAKEUP_PIN_FLAG5: Wakeup Pin Flag for PI8 |
Kojto | 107:4f6c30876dfa | 188 | * @arg PWR_WAKEUP_PIN_FLAG6: Wakeup Pin Flag for PI11 |
Kojto | 107:4f6c30876dfa | 189 | */ |
Kojto | 107:4f6c30876dfa | 190 | #define __HAL_PWR_CLEAR_WAKEUP_FLAG(__WUFLAG__) (PWR->CR2 |= (__WUFLAG__)) |
Kojto | 107:4f6c30876dfa | 191 | /** |
Kojto | 107:4f6c30876dfa | 192 | * @} |
Kojto | 107:4f6c30876dfa | 193 | */ |
Kojto | 107:4f6c30876dfa | 194 | /* Exported functions --------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 195 | /** @addtogroup PWREx_Exported_Functions PWREx Exported Functions |
Kojto | 107:4f6c30876dfa | 196 | * @{ |
Kojto | 107:4f6c30876dfa | 197 | */ |
Kojto | 107:4f6c30876dfa | 198 | |
Kojto | 107:4f6c30876dfa | 199 | /** @addtogroup PWREx_Exported_Functions_Group1 |
Kojto | 107:4f6c30876dfa | 200 | * @{ |
Kojto | 107:4f6c30876dfa | 201 | */ |
Kojto | 107:4f6c30876dfa | 202 | uint32_t HAL_PWREx_GetVoltageRange(void); |
Kojto | 107:4f6c30876dfa | 203 | HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling); |
Kojto | 107:4f6c30876dfa | 204 | |
Kojto | 107:4f6c30876dfa | 205 | void HAL_PWREx_EnableFlashPowerDown(void); |
Kojto | 107:4f6c30876dfa | 206 | void HAL_PWREx_DisableFlashPowerDown(void); |
Kojto | 107:4f6c30876dfa | 207 | HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg(void); |
Kojto | 107:4f6c30876dfa | 208 | HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg(void); |
Kojto | 107:4f6c30876dfa | 209 | |
Kojto | 107:4f6c30876dfa | 210 | void HAL_PWREx_EnableMainRegulatorLowVoltage(void); |
Kojto | 107:4f6c30876dfa | 211 | void HAL_PWREx_DisableMainRegulatorLowVoltage(void); |
Kojto | 107:4f6c30876dfa | 212 | void HAL_PWREx_EnableLowRegulatorLowVoltage(void); |
Kojto | 107:4f6c30876dfa | 213 | void HAL_PWREx_DisableLowRegulatorLowVoltage(void); |
Kojto | 107:4f6c30876dfa | 214 | |
Kojto | 107:4f6c30876dfa | 215 | HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void); |
Kojto | 107:4f6c30876dfa | 216 | HAL_StatusTypeDef HAL_PWREx_DisableOverDrive(void); |
Kojto | 107:4f6c30876dfa | 217 | HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode(uint32_t Regulator, uint8_t STOPEntry); |
Kojto | 107:4f6c30876dfa | 218 | |
Kojto | 107:4f6c30876dfa | 219 | /** |
Kojto | 107:4f6c30876dfa | 220 | * @} |
Kojto | 107:4f6c30876dfa | 221 | */ |
Kojto | 107:4f6c30876dfa | 222 | |
Kojto | 107:4f6c30876dfa | 223 | /** |
Kojto | 107:4f6c30876dfa | 224 | * @} |
Kojto | 107:4f6c30876dfa | 225 | */ |
Kojto | 107:4f6c30876dfa | 226 | /* Private types -------------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 227 | /* Private variables ---------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 228 | /* Private constants ---------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 229 | /* Private macros ------------------------------------------------------------*/ |
Kojto | 107:4f6c30876dfa | 230 | /** @defgroup PWREx_Private_Macros PWREx Private Macros |
Kojto | 107:4f6c30876dfa | 231 | * @{ |
Kojto | 107:4f6c30876dfa | 232 | */ |
Kojto | 107:4f6c30876dfa | 233 | |
Kojto | 107:4f6c30876dfa | 234 | /** @defgroup PWREx_IS_PWR_Definitions PWREx Private macros to check input parameters |
Kojto | 107:4f6c30876dfa | 235 | * @{ |
Kojto | 107:4f6c30876dfa | 236 | */ |
Kojto | 107:4f6c30876dfa | 237 | #define IS_PWR_REGULATOR_UNDERDRIVE(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_UNDERDRIVE_ON) || \ |
Kojto | 107:4f6c30876dfa | 238 | ((REGULATOR) == PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON)) |
Kojto | 107:4f6c30876dfa | 239 | #define IS_PWR_WAKEUP_PIN(__PIN__) (((__PIN__) == PWR_WAKEUP_PIN1) || \ |
Kojto | 107:4f6c30876dfa | 240 | ((__PIN__) == PWR_WAKEUP_PIN2) || \ |
Kojto | 107:4f6c30876dfa | 241 | ((__PIN__) == PWR_WAKEUP_PIN3) || \ |
Kojto | 107:4f6c30876dfa | 242 | ((__PIN__) == PWR_WAKEUP_PIN4) || \ |
Kojto | 107:4f6c30876dfa | 243 | ((__PIN__) == PWR_WAKEUP_PIN5) || \ |
Kojto | 107:4f6c30876dfa | 244 | ((__PIN__) == PWR_WAKEUP_PIN6) || \ |
Kojto | 107:4f6c30876dfa | 245 | ((__PIN__) == PWR_WAKEUP_PIN1_HIGH) || \ |
Kojto | 107:4f6c30876dfa | 246 | ((__PIN__) == PWR_WAKEUP_PIN2_HIGH) || \ |
Kojto | 107:4f6c30876dfa | 247 | ((__PIN__) == PWR_WAKEUP_PIN3_HIGH) || \ |
Kojto | 107:4f6c30876dfa | 248 | ((__PIN__) == PWR_WAKEUP_PIN4_HIGH) || \ |
Kojto | 107:4f6c30876dfa | 249 | ((__PIN__) == PWR_WAKEUP_PIN5_HIGH) || \ |
Kojto | 107:4f6c30876dfa | 250 | ((__PIN__) == PWR_WAKEUP_PIN6_HIGH) || \ |
Kojto | 107:4f6c30876dfa | 251 | ((__PIN__) == PWR_WAKEUP_PIN1_LOW) || \ |
Kojto | 107:4f6c30876dfa | 252 | ((__PIN__) == PWR_WAKEUP_PIN2_LOW) || \ |
Kojto | 107:4f6c30876dfa | 253 | ((__PIN__) == PWR_WAKEUP_PIN3_LOW) || \ |
Kojto | 107:4f6c30876dfa | 254 | ((__PIN__) == PWR_WAKEUP_PIN4_LOW) || \ |
Kojto | 107:4f6c30876dfa | 255 | ((__PIN__) == PWR_WAKEUP_PIN5_LOW) || \ |
Kojto | 107:4f6c30876dfa | 256 | ((__PIN__) == PWR_WAKEUP_PIN6_LOW)) |
Kojto | 107:4f6c30876dfa | 257 | /** |
Kojto | 107:4f6c30876dfa | 258 | * @} |
Kojto | 107:4f6c30876dfa | 259 | */ |
Kojto | 107:4f6c30876dfa | 260 | |
Kojto | 107:4f6c30876dfa | 261 | /** |
Kojto | 107:4f6c30876dfa | 262 | * @} |
Kojto | 107:4f6c30876dfa | 263 | */ |
Kojto | 107:4f6c30876dfa | 264 | |
Kojto | 107:4f6c30876dfa | 265 | /** |
Kojto | 107:4f6c30876dfa | 266 | * @} |
Kojto | 107:4f6c30876dfa | 267 | */ |
Kojto | 107:4f6c30876dfa | 268 | |
Kojto | 107:4f6c30876dfa | 269 | /** |
Kojto | 107:4f6c30876dfa | 270 | * @} |
Kojto | 107:4f6c30876dfa | 271 | */ |
Kojto | 107:4f6c30876dfa | 272 | |
Kojto | 107:4f6c30876dfa | 273 | #ifdef __cplusplus |
Kojto | 107:4f6c30876dfa | 274 | } |
Kojto | 107:4f6c30876dfa | 275 | #endif |
Kojto | 107:4f6c30876dfa | 276 | |
Kojto | 107:4f6c30876dfa | 277 | |
Kojto | 107:4f6c30876dfa | 278 | #endif /* __STM32F7xx_HAL_PWR_EX_H */ |
Kojto | 107:4f6c30876dfa | 279 | |
Kojto | 107:4f6c30876dfa | 280 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |