Rev 56 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 56 | Rev 77 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /** |
1 | /** |
2 | ****************************************************************************** |
2 | ****************************************************************************** |
3 | * @file stm32l1xx_ll_pwr.c |
3 | * @file stm32l1xx_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) 2017 STMicroelectronics. |
9 | * Copyright (c) 2017 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 | #if defined(USE_FULL_LL_DRIVER) |
18 | #if defined(USE_FULL_LL_DRIVER) |
20 | 19 | ||
21 | /* Includes ------------------------------------------------------------------*/ |
20 | /* Includes ------------------------------------------------------------------*/ |
22 | #include "stm32l1xx_ll_pwr.h" |
21 | #include "stm32l1xx_ll_pwr.h" |
23 | #include "stm32l1xx_ll_bus.h" |
22 | #include "stm32l1xx_ll_bus.h" |
24 | 23 | ||
25 | /** @addtogroup STM32L1xx_LL_Driver |
24 | /** @addtogroup STM32L1xx_LL_Driver |
26 | * @{ |
25 | * @{ |
27 | */ |
26 | */ |
28 | 27 | ||
29 | #if defined(PWR) |
28 | #if defined(PWR) |
30 | 29 | ||
31 | /** @defgroup PWR_LL PWR |
30 | /** @defgroup PWR_LL PWR |
32 | * @{ |
31 | * @{ |
33 | */ |
32 | */ |
34 | 33 | ||
35 | /* Private types -------------------------------------------------------------*/ |
34 | /* Private types -------------------------------------------------------------*/ |
36 | /* Private variables ---------------------------------------------------------*/ |
35 | /* Private variables ---------------------------------------------------------*/ |
37 | /* Private constants ---------------------------------------------------------*/ |
36 | /* Private constants ---------------------------------------------------------*/ |
38 | /* Private macros ------------------------------------------------------------*/ |
37 | /* Private macros ------------------------------------------------------------*/ |
39 | /* Private function prototypes -----------------------------------------------*/ |
38 | /* Private function prototypes -----------------------------------------------*/ |
40 | 39 | ||
41 | /* Exported functions --------------------------------------------------------*/ |
40 | /* Exported functions --------------------------------------------------------*/ |
42 | /** @addtogroup PWR_LL_Exported_Functions |
41 | /** @addtogroup PWR_LL_Exported_Functions |
43 | * @{ |
42 | * @{ |
44 | */ |
43 | */ |
45 | 44 | ||
46 | /** @addtogroup PWR_LL_EF_Init |
45 | /** @addtogroup PWR_LL_EF_Init |
47 | * @{ |
46 | * @{ |
48 | */ |
47 | */ |
49 | 48 | ||
50 | /** |
49 | /** |
51 | * @brief De-initialize the PWR registers to their default reset values. |
50 | * @brief De-initialize the PWR registers to their default reset values. |
52 | * @retval An ErrorStatus enumeration value: |
51 | * @retval An ErrorStatus enumeration value: |
53 | * - SUCCESS: PWR registers are de-initialized |
52 | * - SUCCESS: PWR registers are de-initialized |
54 | * - ERROR: not applicable |
53 | * - ERROR: not applicable |
55 | */ |
54 | */ |
56 | ErrorStatus LL_PWR_DeInit(void) |
55 | ErrorStatus LL_PWR_DeInit(void) |
57 | { |
56 | { |
58 | /* Force reset of PWR clock */ |
57 | /* Force reset of PWR clock */ |
59 | LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR); |
58 | LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR); |
60 | 59 | ||
61 | /* Release reset of PWR clock */ |
60 | /* Release reset of PWR clock */ |
62 | LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR); |
61 | LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR); |
63 | 62 | ||
64 | return SUCCESS; |
63 | return SUCCESS; |
65 | } |
64 | } |
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 | #endif /* defined(PWR) */ |
77 | #endif /* defined(PWR) */ |
79 | /** |
78 | /** |
80 | * @} |
79 | * @} |
81 | */ |
80 | */ |
82 | 81 | ||
83 | #endif /* USE_FULL_LL_DRIVER */ |
82 | #endif /* USE_FULL_LL_DRIVER */ |
84 | - | ||
85 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
- |