Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2 | mjames | 1 | /** |
| 2 | ****************************************************************************** |
||
| 3 | * @file stm32f1xx_ll_pwr.c |
||
| 4 | * @author MCD Application Team |
||
| 5 | * @brief PWR LL module driver. |
||
| 6 | ****************************************************************************** |
||
| 7 | * @attention |
||
| 8 | * |
||
| 9 | * Copyright (c) 2016 STMicroelectronics. |
||
| 10 | * All rights reserved. |
||
| 11 | * |
||
| 12 | * This software is licensed under terms that can be found in the LICENSE file |
||
| 13 | * in the root directory of this software component. |
||
| 14 | * If no LICENSE file comes with this software, it is provided AS-IS. |
||
| 15 | * |
||
| 16 | ****************************************************************************** |
||
| 17 | */ |
||
| 18 | |||
| 19 | #if defined(USE_FULL_LL_DRIVER) |
||
| 20 | |||
| 21 | /* Includes ------------------------------------------------------------------*/ |
||
| 22 | #include "stm32f1xx_ll_pwr.h" |
||
| 23 | #include "stm32f1xx_ll_bus.h" |
||
| 24 | |||
| 25 | /** @addtogroup STM32F1xx_LL_Driver |
||
| 26 | * @{ |
||
| 27 | */ |
||
| 28 | |||
| 29 | #if defined(PWR) |
||
| 30 | |||
| 31 | /** @defgroup PWR_LL PWR |
||
| 32 | * @{ |
||
| 33 | */ |
||
| 34 | |||
| 35 | /* Private types -------------------------------------------------------------*/ |
||
| 36 | /* Private variables ---------------------------------------------------------*/ |
||
| 37 | /* Private constants ---------------------------------------------------------*/ |
||
| 38 | /* Private macros ------------------------------------------------------------*/ |
||
| 39 | /* Private function prototypes -----------------------------------------------*/ |
||
| 40 | |||
| 41 | /* Exported functions --------------------------------------------------------*/ |
||
| 42 | /** @addtogroup PWR_LL_Exported_Functions |
||
| 43 | * @{ |
||
| 44 | */ |
||
| 45 | |||
| 46 | /** @addtogroup PWR_LL_EF_Init |
||
| 47 | * @{ |
||
| 48 | */ |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @brief De-initialize the PWR registers to their default reset values. |
||
| 52 | * @retval An ErrorStatus enumeration value: |
||
| 53 | * - SUCCESS: PWR registers are de-initialized |
||
| 54 | * - ERROR: not applicable |
||
| 55 | */ |
||
| 56 | ErrorStatus LL_PWR_DeInit(void) |
||
| 57 | { |
||
| 58 | /* Force reset of PWR clock */ |
||
| 59 | LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR); |
||
| 60 | |||
| 61 | /* Release reset of PWR clock */ |
||
| 62 | LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR); |
||
| 63 | |||
| 64 | return SUCCESS; |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @} |
||
| 69 | */ |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @} |
||
| 73 | */ |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @} |
||
| 77 | */ |
||
| 78 | #endif /* defined(PWR) */ |
||
| 79 | /** |
||
| 80 | * @} |
||
| 81 | */ |
||
| 82 | |||
| 83 | #endif /* USE_FULL_LL_DRIVER */ |