text: 
  /**
    ********************************************************************************
    * @file    stm8s_clk_HSECmd.c
    * @author  MCD Application Team
    * @version V2.2.0
    * @date    30-September-2014
    * @brief   This file contains all the functions for the UART1 peripheral.
     ******************************************************************************
    * @attention
    *
    * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
    *
    * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
    * You may not use this file except in compliance with the License.
    * You may obtain a copy of the License at:
    *
    *        http://www.st.com/software_license_agreement_liberty_v2
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    *
    ******************************************************************************
    */
  
  /* Includes ------------------------------------------------------------------*/
  #include "stm8s_clk.h"
  #include "private/stm8s_clk_private.h"
  
  /** @addtogroup STM8S_StdPeriph_Driver
    * @{
    */
  
  /** @}
    * @addtogroup CLK_Public_Functions
    * @{
    */
  
  /**
    * @brief  Enable or Disable the External High Speed oscillator (HSE).
    * @param   NewState new state of HSEEN, value accepted ENABLE, DISABLE.
    * @retval None
    */
  void CLK_HSECmd(FunctionalState NewState)
  {
    /* Check the parameters */
    assert_param(IS_FUNCTIONALSTATE_OK(NewState));
    
    if (NewState != DISABLE)
    {
      /* Set HSEEN bit */
      CLK->ECKR |= CLK_ECKR_HSEEN;
    }
    else
    {
      /* Reset HSEEN bit */
      CLK->ECKR &= (uint8_t)(~CLK_ECKR_HSEEN);
    }
  }
  
  /**
    * @}
    */
  
  /**
    * @}
    */
  
  /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
  