stm8s_conf.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /**
  2. ******************************************************************************
  3. * @file stm8s_conf.h
  4. * @author MCD Application Team
  5. * @version V2.2.0
  6. * @date 30-September-2014
  7. * @brief This file is used to configure the Library.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Define to prevent recursive inclusion -------------------------------------*/
  28. #ifndef __STM8S_CONF_H
  29. #define __STM8S_CONF_H
  30. /* Includes ------------------------------------------------------------------*/
  31. #include "stm8s.h"
  32. /* Uncomment the line below to enable peripheral header file inclusion */
  33. #if defined(STM8S105) || defined(STM8S005) || defined(STM8S103) || defined(STM8S003) ||\
  34. defined(STM8S903) || defined (STM8AF626x) || defined (STM8AF622x)
  35. #include "stm8s_adc1.h"
  36. #endif /* (STM8S105) ||(STM8S103) || (STM8S903) || (STM8AF626x) || (STM8AF622x) */
  37. #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
  38. defined (STM8AF62Ax)
  39. #include "stm8s_adc2.h"
  40. #endif /* (STM8S208) || (STM8S207) || (STM8AF62Ax) || (STM8AF52Ax) */
  41. #include "stm8s_awu.h"
  42. #include "stm8s_beep.h"
  43. #if defined (STM8S208) || defined (STM8AF52Ax)
  44. #include "stm8s_can.h"
  45. #endif /* (STM8S208) || (STM8AF52Ax) */
  46. #include "stm8s_clk.h"
  47. #include "stm8s_exti.h"
  48. #include "stm8s_flash.h"
  49. #include "stm8s_gpio.h"
  50. #include "stm8s_i2c.h"
  51. #include "stm8s_itc.h"
  52. #include "stm8s_iwdg.h"
  53. #include "stm8s_rst.h"
  54. #include "stm8s_spi.h"
  55. #include "stm8s_tim1.h"
  56. #if !defined(STM8S903) || !defined(STM8AF622x)
  57. #include "stm8s_tim2.h"
  58. #endif /* (STM8S903) || (STM8AF622x) */
  59. #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) ||\
  60. defined(STM8S005) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8AF626x)
  61. #include "stm8s_tim3.h"
  62. #endif /* (STM8S208) ||defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) */
  63. #if !defined(STM8S903) || !defined(STM8AF622x)
  64. #include "stm8s_tim4.h"
  65. #endif /* (STM8S903) || (STM8AF622x) */
  66. #if defined(STM8S903) || defined(STM8AF622x)
  67. #include "stm8s_tim5.h"
  68. #include "stm8s_tim6.h"
  69. #endif /* (STM8S903) || (STM8AF622x) */
  70. #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) ||defined(STM8S103) ||\
  71. defined(STM8S003) || defined(STM8S903) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
  72. #include "stm8s_uart1.h"
  73. #endif /* (STM8S208) || (STM8S207) || (STM8S103) || (STM8S903) || (STM8AF52Ax) || (STM8AF62Ax) */
  74. #if defined(STM8S105) || defined(STM8S005) || defined (STM8AF626x)
  75. #include "stm8s_uart2.h"
  76. #endif /* (STM8S105) || (STM8AF626x) */
  77. #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
  78. defined (STM8AF62Ax)
  79. #include "stm8s_uart3.h"
  80. #endif /* STM8S208 || STM8S207 || STM8AF52Ax || STM8AF62Ax */
  81. #if defined(STM8AF622x)
  82. #include "stm8s_uart4.h"
  83. #endif /* (STM8AF622x) */
  84. #include "stm8s_wwdg.h"
  85. /* Exported types ------------------------------------------------------------*/
  86. /* Exported constants --------------------------------------------------------*/
  87. /* Uncomment the line below to expanse the "assert_param" macro in the
  88. Standard Peripheral Library drivers code */
  89. //#define USE_FULL_ASSERT (1)
  90. /* Exported macro ------------------------------------------------------------*/
  91. #ifdef USE_FULL_ASSERT
  92. /**
  93. * @brief The assert_param macro is used for function's parameters check.
  94. * @param expr: If expr is false, it calls assert_failed function
  95. * which reports the name of the source file and the source
  96. * line number of the call that failed.
  97. * If expr is true, it returns no value.
  98. * @retval : None
  99. */
  100. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
  101. /* Exported functions ------------------------------------------------------- */
  102. void assert_failed(uint8_t* file, uint32_t line);
  103. #else
  104. #define assert_param(expr) ((void)0)
  105. #endif /* USE_FULL_ASSERT */
  106. #endif /* __STM8S_CONF_H */
  107. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/