Greg Steiert / maxim-dev

Dependents:   MAX34417_demo MAXREFDES1265 MAXREFDES1265

Fork of mbed-dev by mbed official

Committer:
switches
Date:
Fri Mar 24 15:15:13 2017 +0000
Revision:
164:2e7515f8c45d
Parent:
157:ff67d9f36b67
Added low level init to clear IO registers

Who changed what in which revision?

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