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