Exemplo n.º 1
0
/**
  * @brief  DeInitializes the LPTIM MSP.
  * @param  hcomp: pointer to a LPTIM_HandleTypeDef structure that contains
  *         the configuration information for the specified LPTIM.  
  * @retval None
  */
void HAL_LPTIM_MspDeInit(LPTIM_HandleTypeDef *hlptim)
{   
  /* Disable LPTIM clock */
  __HAL_RCC_LPTIM1_CLK_DISABLE();
    
  /* Disable GPIOC clock */
  __HAL_RCC_GPIOC_CLK_DISABLE();    
}
Exemplo n.º 2
0
void HAL_LPTIM_MspDeInit(LPTIM_HandleTypeDef* lptimHandle)
{

  if(lptimHandle->Instance==LPTIM1)
  {
  /* USER CODE BEGIN LPTIM1_MspDeInit 0 */

  /* USER CODE END LPTIM1_MspDeInit 0 */
    /* Peripheral clock disable */
    __HAL_RCC_LPTIM1_CLK_DISABLE();
  
    /**LPTIM1 GPIO Configuration    
    PA7     ------> LPTIM1_OUT 
    */
    HAL_GPIO_DeInit(GPIOA, GPIO_PIN_7);

    /* LPTIM1 interrupt Deinit */
    HAL_NVIC_DisableIRQ(LPTIM1_IRQn);
  /* USER CODE BEGIN LPTIM1_MspDeInit 1 */

  /* USER CODE END LPTIM1_MspDeInit 1 */
  }
}