/* LPTIM MSP Initialization This function configures the hardware resources used in this example.  */
void HAL_LPTIM_MspInit(LPTIM_HandleTypeDef *hlptim)
/* LPTIM MSP Initialization This function configures the hardware resources used in this example.  */
void HAL_LPTIM_MspInit(LPTIM_HandleTypeDef *hlptim)
{
  RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
  if(hlptim->Instance==LPTIM1)
  {
    PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_LPTIM1;
    PeriphClkInit.Lptim1ClockSelection = RCC_LPTIM1CLKSOURCE_PCLK;
    if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
    {
      Error_Handler();
    }
    __HAL_RCC_LPTIM1_CLK_ENABLE();
  }
}