Merge pull request #11189 from klutvott123/move-telemetry-displayport-init
[betaflight.git] / lib / main / STM32G4 / Drivers / STM32G4xx_HAL_Driver / Src / stm32g4xx_ll_hrtim.c
bloba76af5955c7553f026f3b8ef2227ad0c91f03409
1 /**
2 ******************************************************************************
3 * @file stm32g4xx_ll_hrtim.c
4 * @author MCD Application Team
5 * @brief HRTIM LL module driver.
6 ******************************************************************************
7 * @attention
9 * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
10 * All rights reserved.</center></h2>
12 * This software component is licensed by ST under BSD 3-Clause license,
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:
15 * opensource.org/licenses/BSD-3-Clause
17 ******************************************************************************
19 #if defined(USE_FULL_LL_DRIVER)
21 /* Includes ------------------------------------------------------------------*/
22 #include "stm32g4xx_ll_hrtim.h"
23 #include "stm32g4xx_ll_bus.h"
25 #ifdef USE_FULL_ASSERT
26 #include "stm32_assert.h"
27 #else
28 #define assert_param(expr) ((void)0U)
29 #endif
31 /** @addtogroup STM32G4xx_LL_Driver
32 * @{
35 #if defined (HRTIM1)
37 /** @addtogroup HRTIM_LL
38 * @{
41 /* Private types -------------------------------------------------------------*/
42 /* Private variables ---------------------------------------------------------*/
43 /* Private constants ---------------------------------------------------------*/
44 /* Private macros ------------------------------------------------------------*/
45 /* Private function prototypes -----------------------------------------------*/
46 /* Exported functions --------------------------------------------------------*/
47 /** @addtogroup HRTIM_LL_Exported_Functions
48 * @{
50 /**
51 * @brief Set HRTIM instance registers to their reset values.
52 * @param HRTIMx High Resolution Timer instance
53 * @retval ErrorStatus enumeration value:
54 * - SUCCESS: HRTIMx registers are de-initialized
55 * - ERROR: invalid HRTIMx instance
57 ErrorStatus LL_HRTIM_DeInit(HRTIM_TypeDef *HRTIMx)
59 ErrorStatus result = SUCCESS;
61 /* Check the parameters */
62 assert_param(IS_HRTIM_ALL_INSTANCE(HRTIMx));
63 LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_HRTIM1);
64 LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_HRTIM1);
65 return result;
67 /**
68 * @}
71 /**
72 * @}
75 #endif /* HRTIM1 */
77 /**
78 * @}
81 #endif /* USE_FULL_LL_DRIVER */
83 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/