Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:09

0001 /**
0002   ******************************************************************************
0003   * @file    stm32h7xx_ll_hrtim.c
0004   * @author  MCD Application Team
0005   * @brief   HRTIM LL module driver.
0006   ******************************************************************************
0007   * @attention
0008   *
0009   * Copyright (c) 2017 STMicroelectronics.
0010   * All rights reserved.
0011   *
0012   * This software is licensed under terms that can be found in the LICENSE file
0013   * in the root directory of this software component.
0014   * If no LICENSE file comes with this software, it is provided AS-IS.
0015   *
0016   ******************************************************************************
0017   */
0018 #if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
0019 
0020 /* Includes ------------------------------------------------------------------*/
0021 #include "stm32h7xx_ll_hrtim.h"
0022 #include "stm32h7xx_ll_bus.h"
0023 
0024 #ifdef  USE_FULL_ASSERT
0025 #include "stm32_assert.h"
0026 #else
0027 #define assert_param(expr) ((void)0U)
0028 #endif
0029 
0030 /** @addtogroup STM32H7xx_LL_Driver
0031   * @{
0032   */
0033 
0034 #if defined (HRTIM1)
0035 
0036 /** @addtogroup HRTIM_LL
0037   * @{
0038   */
0039 
0040 /* Private types -------------------------------------------------------------*/
0041 /* Private variables ---------------------------------------------------------*/
0042 /* Private constants ---------------------------------------------------------*/
0043 /* Private macros ------------------------------------------------------------*/
0044 /* Private function prototypes -----------------------------------------------*/
0045 /* Exported functions --------------------------------------------------------*/
0046 /** @addtogroup HRTIM_LL_Exported_Functions
0047   * @{
0048   */
0049 /**
0050   * @brief  Set HRTIM instance registers to their reset values.
0051   * @param  HRTIMx High Resolution Timer instance
0052   * @retval ErrorStatus enumeration value:
0053   *          - SUCCESS: HRTIMx registers are de-initialized
0054   *          - ERROR: invalid HRTIMx instance
0055   */
0056 ErrorStatus LL_HRTIM_DeInit(HRTIM_TypeDef *HRTIMx)
0057 {
0058   ErrorStatus result = SUCCESS;
0059 
0060   /* Check the parameters */
0061   assert_param(IS_HRTIM_ALL_INSTANCE(HRTIMx));
0062   LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_HRTIM);
0063   LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_HRTIM);
0064   return result;
0065 }
0066 /**
0067   * @}
0068   */
0069 
0070 /**
0071   * @}
0072   */
0073 
0074 #endif /* HRTIM1 */
0075 
0076 /**
0077   * @}
0078   */
0079 
0080 #endif /* USE_FULL_LL_DRIVER */