|
STM32G474xx HAL 用户手册
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32g4xx_ll_crs.c 00004 * @author MCD Application Team 00005 * @brief CRS LL module driver. 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * Copyright (c) 2019 STMicroelectronics. 00010 * All rights reserved. 00011 * 00012 * This software is licensed under terms that can be found in the LICENSE file 00013 * in the root directory of this software component. 00014 * If no LICENSE file comes with this software, it is provided AS-IS. 00015 * 00016 ****************************************************************************** 00017 */ 00018 00019 #if defined(USE_FULL_LL_DRIVER) 00020 00021 /* Includes ------------------------------------------------------------------*/ 00022 #include "stm32g4xx_ll_crs.h" 00023 #include "stm32g4xx_ll_bus.h" 00024 00025 /** @addtogroup STM32G4xx_LL_Driver 00026 * @{ 00027 */ 00028 00029 #if defined(CRS) 00030 00031 /** @defgroup CRS_LL CRS 00032 * @{ 00033 */ 00034 00035 /* Private types -------------------------------------------------------------*/ 00036 /* Private variables ---------------------------------------------------------*/ 00037 /* Private constants ---------------------------------------------------------*/ 00038 /* Private macros ------------------------------------------------------------*/ 00039 /* Private function prototypes -----------------------------------------------*/ 00040 00041 /* Exported functions --------------------------------------------------------*/ 00042 /** @addtogroup CRS_LL_Exported_Functions 00043 * @{ 00044 */ 00045 00046 /** @addtogroup CRS_LL_EF_Init 00047 * @{ 00048 */ 00049 00050 /** 00051 * @brief De-Initializes CRS peripheral registers to their default reset values. 00052 * @retval An ErrorStatus enumeration value: 00053 * - SUCCESS: CRS registers are de-initialized 00054 * - ERROR: not applicable 00055 */ 00056 ErrorStatus LL_CRS_DeInit(void) 00057 { 00058 LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_CRS); 00059 LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_CRS); 00060 00061 return SUCCESS; 00062 } 00063 00064 00065 /** 00066 * @} 00067 */ 00068 00069 /** 00070 * @} 00071 */ 00072 00073 /** 00074 * @} 00075 */ 00076 00077 #endif /* defined(CRS) */ 00078 00079 /** 00080 * @} 00081 */ 00082 00083 #endif /* USE_FULL_LL_DRIVER */
1.7.6.1