TUKS MCU Introductory course / TUKS-COURSE-TIMER
Committer:
elmot
Date:
Fri Feb 24 21:13:56 2017 +0000
Revision:
1:d0dfbce63a89
Ready-to-copy

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elmot 1:d0dfbce63a89 1 /**
elmot 1:d0dfbce63a89 2 ******************************************************************************
elmot 1:d0dfbce63a89 3 * @file stm32l4xx_ll_pwr.c
elmot 1:d0dfbce63a89 4 * @author MCD Application Team
elmot 1:d0dfbce63a89 5 * @version V1.5.1
elmot 1:d0dfbce63a89 6 * @date 31-May-2016
elmot 1:d0dfbce63a89 7 * @brief PWR LL module driver.
elmot 1:d0dfbce63a89 8 ******************************************************************************
elmot 1:d0dfbce63a89 9 * @attention
elmot 1:d0dfbce63a89 10 *
elmot 1:d0dfbce63a89 11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
elmot 1:d0dfbce63a89 12 *
elmot 1:d0dfbce63a89 13 * Redistribution and use in source and binary forms, with or without modification,
elmot 1:d0dfbce63a89 14 * are permitted provided that the following conditions are met:
elmot 1:d0dfbce63a89 15 * 1. Redistributions of source code must retain the above copyright notice,
elmot 1:d0dfbce63a89 16 * this list of conditions and the following disclaimer.
elmot 1:d0dfbce63a89 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
elmot 1:d0dfbce63a89 18 * this list of conditions and the following disclaimer in the documentation
elmot 1:d0dfbce63a89 19 * and/or other materials provided with the distribution.
elmot 1:d0dfbce63a89 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
elmot 1:d0dfbce63a89 21 * may be used to endorse or promote products derived from this software
elmot 1:d0dfbce63a89 22 * without specific prior written permission.
elmot 1:d0dfbce63a89 23 *
elmot 1:d0dfbce63a89 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
elmot 1:d0dfbce63a89 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
elmot 1:d0dfbce63a89 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
elmot 1:d0dfbce63a89 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
elmot 1:d0dfbce63a89 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
elmot 1:d0dfbce63a89 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
elmot 1:d0dfbce63a89 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
elmot 1:d0dfbce63a89 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
elmot 1:d0dfbce63a89 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
elmot 1:d0dfbce63a89 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
elmot 1:d0dfbce63a89 34 *
elmot 1:d0dfbce63a89 35 ******************************************************************************
elmot 1:d0dfbce63a89 36 */
elmot 1:d0dfbce63a89 37 #if defined(USE_FULL_LL_DRIVER)
elmot 1:d0dfbce63a89 38
elmot 1:d0dfbce63a89 39 /* Includes ------------------------------------------------------------------*/
elmot 1:d0dfbce63a89 40 #include "stm32l4xx_ll_pwr.h"
elmot 1:d0dfbce63a89 41 #include "stm32l4xx_ll_bus.h"
elmot 1:d0dfbce63a89 42
elmot 1:d0dfbce63a89 43 /** @addtogroup STM32L4xx_LL_Driver
elmot 1:d0dfbce63a89 44 * @{
elmot 1:d0dfbce63a89 45 */
elmot 1:d0dfbce63a89 46
elmot 1:d0dfbce63a89 47 #if defined(PWR)
elmot 1:d0dfbce63a89 48
elmot 1:d0dfbce63a89 49 /** @defgroup PWR_LL PWR
elmot 1:d0dfbce63a89 50 * @{
elmot 1:d0dfbce63a89 51 */
elmot 1:d0dfbce63a89 52
elmot 1:d0dfbce63a89 53 /* Private types -------------------------------------------------------------*/
elmot 1:d0dfbce63a89 54 /* Private variables ---------------------------------------------------------*/
elmot 1:d0dfbce63a89 55 /* Private constants ---------------------------------------------------------*/
elmot 1:d0dfbce63a89 56 /* Private macros ------------------------------------------------------------*/
elmot 1:d0dfbce63a89 57 /* Private function prototypes -----------------------------------------------*/
elmot 1:d0dfbce63a89 58
elmot 1:d0dfbce63a89 59 /* Exported functions --------------------------------------------------------*/
elmot 1:d0dfbce63a89 60 /** @addtogroup PWR_LL_Exported_Functions
elmot 1:d0dfbce63a89 61 * @{
elmot 1:d0dfbce63a89 62 */
elmot 1:d0dfbce63a89 63
elmot 1:d0dfbce63a89 64 /** @addtogroup PWR_LL_EF_Init
elmot 1:d0dfbce63a89 65 * @{
elmot 1:d0dfbce63a89 66 */
elmot 1:d0dfbce63a89 67
elmot 1:d0dfbce63a89 68 /**
elmot 1:d0dfbce63a89 69 * @brief De-initialize the PWR registers to their default reset values.
elmot 1:d0dfbce63a89 70 * @retval An ErrorStatus enumeration value:
elmot 1:d0dfbce63a89 71 * - SUCCESS: PWR registers are de-initialized
elmot 1:d0dfbce63a89 72 * - ERROR: not applicable
elmot 1:d0dfbce63a89 73 */
elmot 1:d0dfbce63a89 74 ErrorStatus LL_PWR_DeInit(void)
elmot 1:d0dfbce63a89 75 {
elmot 1:d0dfbce63a89 76 /* Force reset of PWR clock */
elmot 1:d0dfbce63a89 77 LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR);
elmot 1:d0dfbce63a89 78
elmot 1:d0dfbce63a89 79 /* Release reset of PWR clock */
elmot 1:d0dfbce63a89 80 LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR);
elmot 1:d0dfbce63a89 81
elmot 1:d0dfbce63a89 82 return SUCCESS;
elmot 1:d0dfbce63a89 83 }
elmot 1:d0dfbce63a89 84
elmot 1:d0dfbce63a89 85 /**
elmot 1:d0dfbce63a89 86 * @}
elmot 1:d0dfbce63a89 87 */
elmot 1:d0dfbce63a89 88
elmot 1:d0dfbce63a89 89 /**
elmot 1:d0dfbce63a89 90 * @}
elmot 1:d0dfbce63a89 91 */
elmot 1:d0dfbce63a89 92
elmot 1:d0dfbce63a89 93 /**
elmot 1:d0dfbce63a89 94 * @}
elmot 1:d0dfbce63a89 95 */
elmot 1:d0dfbce63a89 96 #endif /* defined(PWR) */
elmot 1:d0dfbce63a89 97 /**
elmot 1:d0dfbce63a89 98 * @}
elmot 1:d0dfbce63a89 99 */
elmot 1:d0dfbce63a89 100
elmot 1:d0dfbce63a89 101 #endif /* USE_FULL_LL_DRIVER */
elmot 1:d0dfbce63a89 102
elmot 1:d0dfbce63a89 103 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/