inport from local

Dependents:   Hobbyking_Cheetah_0511

Committer:
NYX
Date:
Mon Mar 16 06:35:48 2020 +0000
Revision:
0:85b3fd62ea1a
reinport to mbed;

Who changed what in which revision?

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