Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_NUCLEO_L073RZ/stm32l0xx_hal_pwr_ex.h@121:672067c3ada4, 2016-04-14 (annotated)
- Committer:
- elijahorr
- Date:
- Thu Apr 14 07:28:54 2016 +0000
- Revision:
- 121:672067c3ada4
- Parent:
- 116:c0f6e94411f5
.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Kojto | 116:c0f6e94411f5 | 1 | /** |
| Kojto | 116:c0f6e94411f5 | 2 | ****************************************************************************** |
| Kojto | 116:c0f6e94411f5 | 3 | * @file stm32l0xx_hal_pwr_ex.h |
| Kojto | 116:c0f6e94411f5 | 4 | * @author MCD Application Team |
| Kojto | 116:c0f6e94411f5 | 5 | * @version V1.2.0 |
| Kojto | 116:c0f6e94411f5 | 6 | * @date 06-February-2015 |
| Kojto | 116:c0f6e94411f5 | 7 | * @brief Header file of PWR HAL Extension module. |
| Kojto | 116:c0f6e94411f5 | 8 | ****************************************************************************** |
| Kojto | 116:c0f6e94411f5 | 9 | * @attention |
| Kojto | 116:c0f6e94411f5 | 10 | * |
| Kojto | 116:c0f6e94411f5 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
| Kojto | 116:c0f6e94411f5 | 12 | * |
| Kojto | 116:c0f6e94411f5 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
| Kojto | 116:c0f6e94411f5 | 14 | * are permitted provided that the following conditions are met: |
| Kojto | 116:c0f6e94411f5 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| Kojto | 116:c0f6e94411f5 | 16 | * this list of conditions and the following disclaimer. |
| Kojto | 116:c0f6e94411f5 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| Kojto | 116:c0f6e94411f5 | 18 | * this list of conditions and the following disclaimer in the documentation |
| Kojto | 116:c0f6e94411f5 | 19 | * and/or other materials provided with the distribution. |
| Kojto | 116:c0f6e94411f5 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| Kojto | 116:c0f6e94411f5 | 21 | * may be used to endorse or promote products derived from this software |
| Kojto | 116:c0f6e94411f5 | 22 | * without specific prior written permission. |
| Kojto | 116:c0f6e94411f5 | 23 | * |
| Kojto | 116:c0f6e94411f5 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| Kojto | 116:c0f6e94411f5 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| Kojto | 116:c0f6e94411f5 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| Kojto | 116:c0f6e94411f5 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| Kojto | 116:c0f6e94411f5 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| Kojto | 116:c0f6e94411f5 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| Kojto | 116:c0f6e94411f5 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| Kojto | 116:c0f6e94411f5 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| Kojto | 116:c0f6e94411f5 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| Kojto | 116:c0f6e94411f5 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Kojto | 116:c0f6e94411f5 | 34 | * |
| Kojto | 116:c0f6e94411f5 | 35 | ****************************************************************************** |
| Kojto | 116:c0f6e94411f5 | 36 | */ |
| Kojto | 116:c0f6e94411f5 | 37 | |
| Kojto | 116:c0f6e94411f5 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| Kojto | 116:c0f6e94411f5 | 39 | #ifndef __STM32L0xx_HAL_PWR_EX_H |
| Kojto | 116:c0f6e94411f5 | 40 | #define __STM32L0xx_HAL_PWR_EX_H |
| Kojto | 116:c0f6e94411f5 | 41 | |
| Kojto | 116:c0f6e94411f5 | 42 | #ifdef __cplusplus |
| Kojto | 116:c0f6e94411f5 | 43 | extern "C" { |
| Kojto | 116:c0f6e94411f5 | 44 | #endif |
| Kojto | 116:c0f6e94411f5 | 45 | |
| Kojto | 116:c0f6e94411f5 | 46 | /* Includes ------------------------------------------------------------------*/ |
| Kojto | 116:c0f6e94411f5 | 47 | #include "stm32l0xx_hal_def.h" |
| Kojto | 116:c0f6e94411f5 | 48 | |
| Kojto | 116:c0f6e94411f5 | 49 | /** @addtogroup STM32L0xx_HAL_Driver |
| Kojto | 116:c0f6e94411f5 | 50 | * @{ |
| Kojto | 116:c0f6e94411f5 | 51 | */ |
| Kojto | 116:c0f6e94411f5 | 52 | |
| Kojto | 116:c0f6e94411f5 | 53 | /** @defgroup PWREx PWR extented module |
| Kojto | 116:c0f6e94411f5 | 54 | * @{ |
| Kojto | 116:c0f6e94411f5 | 55 | */ |
| Kojto | 116:c0f6e94411f5 | 56 | |
| Kojto | 116:c0f6e94411f5 | 57 | /** @defgroup PWREx_Exported_Macros PWRex exported macros |
| Kojto | 116:c0f6e94411f5 | 58 | * @{ |
| Kojto | 116:c0f6e94411f5 | 59 | */ |
| Kojto | 116:c0f6e94411f5 | 60 | |
| Kojto | 116:c0f6e94411f5 | 61 | /** @brief Macros to enable the Deep-sleep mode with Flash memory kept off. |
| Kojto | 116:c0f6e94411f5 | 62 | * @note When entering low power mode (stop or standby only), if DS_EE_KOFF and RUN_PD of |
| Kojto | 116:c0f6e94411f5 | 63 | * FLASH_ACR register are both set , the Flash memory will not be woken up |
| Kojto | 116:c0f6e94411f5 | 64 | * when exiting from deep-sleep mode. |
| Kojto | 116:c0f6e94411f5 | 65 | */ |
| Kojto | 116:c0f6e94411f5 | 66 | #define __HAL_PWR_FLASHWAKEUP_ENABLE() CLEAR_BIT(PWR->CR, PWR_CR_DSEEKOFF) |
| Kojto | 116:c0f6e94411f5 | 67 | |
| Kojto | 116:c0f6e94411f5 | 68 | /** @brief Macros to disable the Deep-sleep mode with Flash memory kept off. |
| Kojto | 116:c0f6e94411f5 | 69 | * @note When entering low power mode (stop or standby only), if DS_EE_KOFF and RUN_PD of |
| Kojto | 116:c0f6e94411f5 | 70 | * FLASH_ACR register are both set , the Flash memory will not be woken up |
| Kojto | 116:c0f6e94411f5 | 71 | * when exiting from deep-sleep mode. |
| Kojto | 116:c0f6e94411f5 | 72 | */ |
| Kojto | 116:c0f6e94411f5 | 73 | #define __HAL_PWR_FLASHWAKEUP_DISABLE() SET_BIT(PWR->CR, PWR_CR_DSEEKOFF) |
| Kojto | 116:c0f6e94411f5 | 74 | /** |
| Kojto | 116:c0f6e94411f5 | 75 | * @} |
| Kojto | 116:c0f6e94411f5 | 76 | */ |
| Kojto | 116:c0f6e94411f5 | 77 | |
| Kojto | 116:c0f6e94411f5 | 78 | /** @defgroup PWREx_Exported_Functions PWRex exported functions |
| Kojto | 116:c0f6e94411f5 | 79 | * @{ |
| Kojto | 116:c0f6e94411f5 | 80 | */ |
| Kojto | 116:c0f6e94411f5 | 81 | void HAL_PWREx_EnableFastWakeUp(void); |
| Kojto | 116:c0f6e94411f5 | 82 | void HAL_PWREx_DisableFastWakeUp(void); |
| Kojto | 116:c0f6e94411f5 | 83 | void HAL_PWREx_EnableUltraLowPower(void); |
| Kojto | 116:c0f6e94411f5 | 84 | void HAL_PWREx_DisableUltraLowPower(void); |
| Kojto | 116:c0f6e94411f5 | 85 | void HAL_PWREx_EnableLowPowerRunMode(void); |
| Kojto | 116:c0f6e94411f5 | 86 | HAL_StatusTypeDef HAL_PWREx_DisableLowPowerRunMode(void); |
| Kojto | 116:c0f6e94411f5 | 87 | /** |
| Kojto | 116:c0f6e94411f5 | 88 | * @} |
| Kojto | 116:c0f6e94411f5 | 89 | */ |
| Kojto | 116:c0f6e94411f5 | 90 | |
| Kojto | 116:c0f6e94411f5 | 91 | /** |
| Kojto | 116:c0f6e94411f5 | 92 | * @} |
| Kojto | 116:c0f6e94411f5 | 93 | */ |
| Kojto | 116:c0f6e94411f5 | 94 | |
| Kojto | 116:c0f6e94411f5 | 95 | /** |
| Kojto | 116:c0f6e94411f5 | 96 | * @} |
| Kojto | 116:c0f6e94411f5 | 97 | */ |
| Kojto | 116:c0f6e94411f5 | 98 | |
| Kojto | 116:c0f6e94411f5 | 99 | #ifdef __cplusplus |
| Kojto | 116:c0f6e94411f5 | 100 | } |
| Kojto | 116:c0f6e94411f5 | 101 | #endif |
| Kojto | 116:c0f6e94411f5 | 102 | |
| Kojto | 116:c0f6e94411f5 | 103 | #endif /* __STM32L0xx_HAL_PWR_EX_H */ |
| Kojto | 116:c0f6e94411f5 | 104 | |
| Kojto | 116:c0f6e94411f5 | 105 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
| Kojto | 116:c0f6e94411f5 | 106 |
