31 #ifndef __STM8S_CONF_H
32 #define __STM8S_CONF_H
38 #if defined(STM8S105) || defined(STM8S005) || defined(STM8S103) || defined(STM8S003) ||\
39 defined(STM8S001) || defined(STM8S903) || defined (STM8AF626x) || defined (STM8AF622x)
42 #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
48 #if defined (STM8S208) || defined (STM8AF52Ax)
51 #include "stm8s_clk.h"
52 #include "stm8s_exti.h"
54 #include "stm8s_gpio.h"
59 #include "stm8s_spi.h"
61 #if !defined(STM8S903) && !defined(STM8AF622x)
64 #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) ||\
65 defined(STM8S005) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8AF626x)
68 #if !defined(STM8S903) && !defined(STM8AF622x)
71 #if defined(STM8S903) || defined(STM8AF622x)
75 #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S103) ||\
76 defined(STM8S003) || defined(STM8S001) || defined(STM8S903) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
77 #include "stm8s_uart1.h"
79 #if defined(STM8S105) || defined(STM8S005) || defined (STM8AF626x)
82 #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
86 #if defined(STM8AF622x)
95 #define USE_FULL_ASSERT (1)
98 #ifdef USE_FULL_ASSERT
108 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
112 #define assert_param(expr) ((void)0)
void assert_failed(uint8_t *file, uint32_t line)