mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Wed Feb 20 22:31:08 2019 +0000
Revision:
189:f392fc9709a3
Parent:
187:0387e8f68319
mbed library release version 165

Who changed what in which revision?

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