STM8S/A Standard Peripherals Firmware Library: stm8s_conf.h Source File

STM8S/A

STM8S_StdPeriph_Examples/ADC2/ADC2_ContinuousConversion/stm8s_conf.h
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file     stm8s_conf.h
00004   * @author   MCD Application Team
00005   * @version  V2.2.0
00006   * @date     30-September-2014
00007   * @brief    This file is used to configure the Library.
00008   ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
00012   *
00013   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
00014   * You may not use this file except in compliance with the License.
00015   * You may obtain a copy of the License at:
00016   *
00017   *        http://www.st.com/software_license_agreement_liberty_v2
00018   *
00019   * Unless required by applicable law or agreed to in writing, software 
00020   * distributed under the License is distributed on an "AS IS" BASIS, 
00021   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00022   * See the License for the specific language governing permissions and
00023   * limitations under the License.
00024   *
00025   ******************************************************************************
00026   */ 
00027 
00028 /* Define to prevent recursive inclusion -------------------------------------*/
00029 #ifndef __STM8S_CONF_H
00030 #define __STM8S_CONF_H
00031 
00032 /* Includes ------------------------------------------------------------------*/
00033 #include "stm8s.h"
00034 
00035 /* Uncomment the line below to enable peripheral header file inclusion */
00036 #if defined(STM8S105) || defined(STM8S005) || defined(STM8S103) || defined(STM8S003) ||\
00037     defined(STM8S903) || defined (STM8AF626x)
00038 #include "stm8s_adc1.h" 
00039 #endif /* (STM8S105) ||(STM8S103) || (STM8S903) || STM8AF626x*/
00040 #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
00041     defined (STM8AF62Ax)
00042  #include "stm8s_adc2.h"
00043 #endif /* (STM8S208) || (STM8S207) || (STM8AF62Ax) || (STM8AF52Ax) */
00044 #include "stm8s_awu.h"
00045 #include "stm8s_beep.h"
00046 #if defined (STM8S208) || defined (STM8AF52Ax)
00047  #include "stm8s_can.h"
00048 #endif /* STM8S208 || STM8AF52Ax */
00049 #include "stm8s_clk.h"
00050 #include "stm8s_exti.h"
00051 #include "stm8s_flash.h"
00052 #include "stm8s_gpio.h"
00053 #include "stm8s_i2c.h"
00054 #include "stm8s_itc.h"
00055 #include "stm8s_iwdg.h"
00056 #include "stm8s_rst.h"
00057 #include "stm8s_spi.h"
00058 #include "stm8s_tim1.h"
00059 #ifndef STM8S903
00060  #include "stm8s_tim2.h"
00061 #endif /* STM8S903 */
00062 #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) ||\
00063     defined(STM8S005) ||  defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8AF626x)
00064  #include "stm8s_tim3.h"
00065 #endif /* (STM8S208) ||defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) */ 
00066 #ifndef STM8S903
00067  #include "stm8s_tim4.h"
00068 #endif /* STM8S903 */
00069 #ifdef STM8S903
00070  #include "stm8s_tim5.h"
00071  #include "stm8s_tim6.h"
00072 #endif /* STM8S903 */
00073 #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) ||defined(STM8S103) ||\
00074     defined(STM8S003) || defined(STM8S903) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
00075  #include "stm8s_uart1.h"
00076 #endif /* STM8S208 || STM8S207 || STM8S103 ||STM8S903 || STM8AF52Ax || STM8AF62Ax */
00077 #if defined(STM8S105) || defined(STM8S005) ||  defined (STM8AF626x)
00078  #include "stm8s_uart2.h"
00079 #endif /* STM8S105 || STM8AF626x */
00080 #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
00081     defined (STM8AF62Ax)
00082  #include "stm8s_uart3.h"
00083 #endif /* STM8S208 || STM8S207 || STM8AF52Ax || STM8AF62Ax */ 
00084 #include "stm8s_wwdg.h"
00085 
00086 /* Exported types ------------------------------------------------------------*/
00087 /* Exported constants --------------------------------------------------------*/
00088 /* Uncomment the line below to expanse the "assert_param" macro in the
00089    Standard Peripheral Library drivers code */
00090 #define USE_FULL_ASSERT    (1) 
00091 
00092 /* Exported macro ------------------------------------------------------------*/
00093 #ifdef  USE_FULL_ASSERT
00094 
00095 /**
00096   * @brief  The assert_param macro is used for function's parameters check.
00097   * @param expr: If expr is false, it calls assert_failed function
00098   *   which reports the name of the source file and the source
00099   *   line number of the call that failed.
00100   *   If expr is true, it returns no value.
00101   * @retval : None
00102   */
00103 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
00104 /* Exported functions ------------------------------------------------------- */
00105 void assert_failed(uint8_t* file, uint32_t line);
00106 #else
00107 #define assert_param(expr) ((void)0)
00108 #endif /* USE_FULL_ASSERT */
00109 
00110 #endif /* __STM8S_CONF_H */
00111 
00112 
00113 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com