NRF24L+ STM8 Compatible Library
stm8s_conf.h
Go to the documentation of this file.
1 
28 /* SDCC patch: include "STM8AF622x" defined in "STM8S_StdPeriph_Tempate" */
29 
30 /* Define to prevent recursive inclusion -------------------------------------*/
31 #ifndef __STM8S_CONF_H
32 #define __STM8S_CONF_H
33 
34 /* Includes ------------------------------------------------------------------*/
35 #include "stm8s.h"
36 
37 /* Uncomment the line below to enable peripheral header file inclusion */
38 #if defined(STM8S105) || defined(STM8S005) || defined(STM8S103) || defined(STM8S003) ||\
39  defined(STM8S001) || defined(STM8S903) || defined (STM8AF626x) || defined (STM8AF622x)
40 //#include "stm8s_adc1.h"
41 #endif /* (STM8S105) ||(STM8S103) || (STM8S001) || (STM8S903) || (STM8AF626x) */
42 #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
43  defined (STM8AF62Ax)
44 // #include "stm8s_adc2.h"
45 #endif /* (STM8S208) || (STM8S207) || (STM8AF62Ax) || (STM8AF52Ax) */
46 //#include "stm8s_awu.h"
47 //#include "stm8s_beep.h"
48 #if defined (STM8S208) || defined (STM8AF52Ax)
49 // #include "stm8s_can.h"
50 #endif /* (STM8S208) || (STM8AF52Ax) */
51 #include "stm8s_clk.h"
52 #include "stm8s_exti.h"
53 //#include "stm8s_flash.h"
54 #include "stm8s_gpio.h"
55 //#include "stm8s_i2c.h"
56 //#include "stm8s_itc.h"
57 //#include "stm8s_iwdg.h"
58 //#include "stm8s_rst.h"
59 #include "stm8s_spi.h"
60 //#include "stm8s_tim1.h"
61 #if !defined(STM8S903) && !defined(STM8AF622x) /* SDCC patch: see https://github.com/tenbaht/sduino/tree/master/STM8S_StdPeriph_Driver */
62 // #include "stm8s_tim2.h"
63 #endif /* (STM8S903) || (STM8AF622x) */
64 #if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) ||\
65  defined(STM8S005) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8AF626x)
66 // #include "stm8s_tim3.h"
67 #endif /* (STM8S208) || (STM8S207) || (STM8S007) || (STM8S105) */
68 #if !defined(STM8S903) && !defined(STM8AF622x) /* SDCC patch: see https://github.com/tenbaht/sduino/tree/master/STM8S_StdPeriph_Driver */
69 // #include "stm8s_tim4.h"
70 #endif /* (STM8S903) || (STM8AF622x) */
71 #if defined(STM8S903) || defined(STM8AF622x) /* SDCC patch: see https://github.com/tenbaht/sduino/tree/master/STM8S_StdPeriph_Driver */
72 // #include "stm8s_tim5.h"
73 // #include "stm8s_tim6.h"
74 #endif /* (STM8S903) || (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"
78 #endif /* (STM8S208) || (STM8S207) || (STM8S103) || (STM8S001) || (STM8S903) || (STM8AF52Ax) || (STM8AF62Ax) */
79 #if defined(STM8S105) || defined(STM8S005) || defined (STM8AF626x)
80 // #include "stm8s_uart2.h"
81 #endif /* (STM8S105) || (STM8AF626x) */
82 #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\
83  defined (STM8AF62Ax)
84 // #include "stm8s_uart3.h"
85 #endif /* (STM8S208) || (STM8S207) || (STM8AF52Ax) || (STM8AF62Ax) */
86 #if defined(STM8AF622x) /* SDCC patch: see https://github.com/tenbaht/sduino/tree/master/STM8S_StdPeriph_Driver */
87 // #include "stm8s_uart4.h"
88 #endif /* (STM8AF622x) */
89 //#include "stm8s_wwdg.h"
90 
91 /* Exported types ------------------------------------------------------------*/
92 /* Exported constants --------------------------------------------------------*/
93 /* Uncomment the line below to expanse the "assert_param" macro in the
94  Standard Peripheral Library drivers code */
95 #define USE_FULL_ASSERT (1)
96 
97 /* Exported macro ------------------------------------------------------------*/
98 #ifdef USE_FULL_ASSERT
99 
108 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
109 /* Exported functions ------------------------------------------------------- */
110 void assert_failed(uint8_t* file, uint32_t line);
111 #else
112 #define assert_param(expr) ((void)0)
113 #endif /* USE_FULL_ASSERT */
114 
115 #endif /* __STM8S_CONF_H */
116 
117 
118 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
void assert_failed(uint8_t *file, uint32_t line)