Emil Johnsen / mbed-src-STM32F030K6

Fork of mbed-src by Ermanno Brusadin

Committer:
emilj
Date:
Sun Oct 23 17:23:00 2016 +0000
Revision:
5:a95fd30f2195
Parent:
0:0a673c671a56
n/a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ebrus 0:0a673c671a56 1 /**
ebrus 0:0a673c671a56 2 ******************************************************************************
ebrus 0:0a673c671a56 3 * @file stm32l0xx_hal_pwr_ex.h
ebrus 0:0a673c671a56 4 * @author MCD Application Team
ebrus 0:0a673c671a56 5 * @version V1.0.0
ebrus 0:0a673c671a56 6 * @date 22-April-2014
ebrus 0:0a673c671a56 7 * @brief Header file of PWR HAL Extension module.
ebrus 0:0a673c671a56 8 ******************************************************************************
ebrus 0:0a673c671a56 9 * @attention
ebrus 0:0a673c671a56 10 *
ebrus 0:0a673c671a56 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
ebrus 0:0a673c671a56 12 *
ebrus 0:0a673c671a56 13 * Redistribution and use in source and binary forms, with or without modification,
ebrus 0:0a673c671a56 14 * are permitted provided that the following conditions are met:
ebrus 0:0a673c671a56 15 * 1. Redistributions of source code must retain the above copyright notice,
ebrus 0:0a673c671a56 16 * this list of conditions and the following disclaimer.
ebrus 0:0a673c671a56 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
ebrus 0:0a673c671a56 18 * this list of conditions and the following disclaimer in the documentation
ebrus 0:0a673c671a56 19 * and/or other materials provided with the distribution.
ebrus 0:0a673c671a56 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
ebrus 0:0a673c671a56 21 * may be used to endorse or promote products derived from this software
ebrus 0:0a673c671a56 22 * without specific prior written permission.
ebrus 0:0a673c671a56 23 *
ebrus 0:0a673c671a56 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
ebrus 0:0a673c671a56 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
ebrus 0:0a673c671a56 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
ebrus 0:0a673c671a56 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
ebrus 0:0a673c671a56 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
ebrus 0:0a673c671a56 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
ebrus 0:0a673c671a56 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
ebrus 0:0a673c671a56 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
ebrus 0:0a673c671a56 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
ebrus 0:0a673c671a56 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ebrus 0:0a673c671a56 34 *
ebrus 0:0a673c671a56 35 ******************************************************************************
ebrus 0:0a673c671a56 36 */
ebrus 0:0a673c671a56 37
ebrus 0:0a673c671a56 38 /* Define to prevent recursive inclusion -------------------------------------*/
ebrus 0:0a673c671a56 39 #ifndef __STM32L0xx_HAL_PWR_EX_H
ebrus 0:0a673c671a56 40 #define __STM32L0xx_HAL_PWR_EX_H
ebrus 0:0a673c671a56 41
ebrus 0:0a673c671a56 42 #ifdef __cplusplus
ebrus 0:0a673c671a56 43 extern "C" {
ebrus 0:0a673c671a56 44 #endif
ebrus 0:0a673c671a56 45
ebrus 0:0a673c671a56 46 /* Includes ------------------------------------------------------------------*/
ebrus 0:0a673c671a56 47 #include "stm32l0xx_hal_def.h"
ebrus 0:0a673c671a56 48
ebrus 0:0a673c671a56 49 /** @addtogroup STM32L0xx_HAL_Driver
ebrus 0:0a673c671a56 50 * @{
ebrus 0:0a673c671a56 51 */
ebrus 0:0a673c671a56 52
ebrus 0:0a673c671a56 53 /** @addtogroup PWREx
ebrus 0:0a673c671a56 54 * @{
ebrus 0:0a673c671a56 55 */
ebrus 0:0a673c671a56 56
ebrus 0:0a673c671a56 57
ebrus 0:0a673c671a56 58 /* Exported types ------------------------------------------------------------*/
ebrus 0:0a673c671a56 59 /* Exported constants --------------------------------------------------------*/
ebrus 0:0a673c671a56 60 /* Exported macro ------------------------------------------------------------*/
ebrus 0:0a673c671a56 61 /** @defgroup PWREx_Exported macro
ebrus 0:0a673c671a56 62 * @{
ebrus 0:0a673c671a56 63 */
ebrus 0:0a673c671a56 64
ebrus 0:0a673c671a56 65 /** @brief Macros to enable or disable the Deep-sleep mode with Flash memory kept off.
ebrus 0:0a673c671a56 66 * @note When entering low power mode (stop or standby only), if DS_EE_KOFF and RUN_PD of
ebrus 0:0a673c671a56 67 * FLASH_ACR register are both set , the Flash memory will not be woken up
ebrus 0:0a673c671a56 68 * when exiting from deep-sleep mode.
ebrus 0:0a673c671a56 69 */
ebrus 0:0a673c671a56 70 #define __HAL_PWR_FLASHWAKEUP_ENABLE() CLEAR_BIT(PWR->CR, PWR_CR_DSEEKOFF)
ebrus 0:0a673c671a56 71 #define __HAL_PWR_FLASHWAKEUP_DISABLE() SET_BIT(PWR->CR, PWR_CR_DSEEKOFF)
ebrus 0:0a673c671a56 72 /**
ebrus 0:0a673c671a56 73 * @}
ebrus 0:0a673c671a56 74 */
ebrus 0:0a673c671a56 75
ebrus 0:0a673c671a56 76 /* Exported functions --------------------------------------------------------*/
ebrus 0:0a673c671a56 77
ebrus 0:0a673c671a56 78 /* Peripheral Control methods ************************************************/
ebrus 0:0a673c671a56 79 void HAL_PWREx_EnableFastWakeUp(void);
ebrus 0:0a673c671a56 80 void HAL_PWREx_DisableFastWakeUp(void);
ebrus 0:0a673c671a56 81 void HAL_PWREx_EnableUltraLowPower(void);
ebrus 0:0a673c671a56 82 void HAL_PWREx_DisableUltraLowPower(void);
ebrus 0:0a673c671a56 83 void HAL_PWREx_EnableLowPowerRunMode(void);
ebrus 0:0a673c671a56 84 void HAL_PWREx_DisableLowPowerRunMode(void);
ebrus 0:0a673c671a56 85
ebrus 0:0a673c671a56 86
ebrus 0:0a673c671a56 87 /**
ebrus 0:0a673c671a56 88 * @}
ebrus 0:0a673c671a56 89 */
ebrus 0:0a673c671a56 90
ebrus 0:0a673c671a56 91 /**
ebrus 0:0a673c671a56 92 * @}
ebrus 0:0a673c671a56 93 */
ebrus 0:0a673c671a56 94
ebrus 0:0a673c671a56 95 #ifdef __cplusplus
ebrus 0:0a673c671a56 96 }
ebrus 0:0a673c671a56 97 #endif
ebrus 0:0a673c671a56 98
ebrus 0:0a673c671a56 99
ebrus 0:0a673c671a56 100 #endif /* __STM32L0xx_HAL_PWR_EX_H */
ebrus 0:0a673c671a56 101
ebrus 0:0a673c671a56 102 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/