-
Notifications
You must be signed in to change notification settings - Fork 1
/
stm8l10x_conf.h
executable file
·160 lines (110 loc) · 3.93 KB
/
stm8l10x_conf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#ifndef __STM8L10x_CONF_H
#define __STM8L10x_CONF_H
/* Includes ------------------------------------------------------------------*/
#include "stm8l10x.h"
/* Uncomment the line below to expanse the "assert_param" macro in the
Standard Peripheral Library drivers code */
/* #define USE_FULL_ASSERT 1 */
/* In the following line adjust the value of External High Speed oscillator (HSE)
used in your application */
#define HSE_VALUE ((uint32_t)16000000) /* Value of the External oscillator in Hz*/
/*** AUTO WAKE UP *************************************************************/
#define _AWU (1)
/*** BEEP *********************************************************************/
#define _BEEP (1)
/*** CLOCK CONTROLLER *********************************************************/
#define _CLK (1)
/*** COMPARATOR ***************************************************************/
#define _COMP (1)
/*** EXTERNAL INTERRUPTS ******************************************************/
#define _EXTI (1)
/*** FLASH/DATA EEPROM ********************************************************/
#define _FLASH (1)
/*** GENERAL PURPOSE IOs ******************************************************/
#define _GPIO (1)
/*** INTERRUPT CONTROLLER *****************************************************/
#define _ITC (1)
/*** INDEPENDANT WDG *********************************************************/
#define _IWDG (1)
/*** I2C **********************************************************************/
#define _I2C (1)
/*** OPTION BYTES *************************************************************/
#define _OPT (1)
/*** RESET CONTROLLER *********************************************************/
#define _RST (1)
/*** SPI ***********************************************************************/
#define _SPI (1)
/*** TIMERs *******************************************************************/
#define _TIM2 (1)
#define _TIM3 (1)
#define _TIM4 (1)
/*** IR remote control interface**************************************************/
#define _IRTIM (1)
/*** USART ********************************************************************/
#define _USART (1)
/*** WFE ********************************************************************/
#define _WFE (1)
/* Exported macro ------------------------------------------------------------*/
#ifdef USE_FULL_ASSERT
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0)
#endif /* USE_FULL_ASSERT */
/* Peripheral header file inclusion ******************************************/
#ifdef _AWU
#include "stm8l10x_awu.h"
#endif /* _AWU */
#ifdef _BEEP
#include "stm8l10x_beep.h"
#endif /* _BEEP */
#if defined(_FLASH) || defined(_OPT)
#include "stm8l10x_flash.h"
#endif /* _FLASH/OPT */
#ifdef _EXTI
#include "stm8l10x_exti.h"
#endif /* _EXTI */
#ifdef _GPIO
#include "stm8l10x_gpio.h"
#endif /* _GPIOx */
#ifdef _I2C
#include "stm8l10x_i2c.h"
#endif /* _I2C */
#ifdef _ITC
#include "stm8l10x_itc.h"
#endif /* _ITC */
#ifdef _IWDG
#include "stm8l10x_iwdg.h"
#endif /* _IWDG */
#ifdef _CLK
#include "stm8l10x_clk.h"
#endif /* _CLK */
#ifdef _RST
#include "stm8l10x_rst.h"
#endif /* _RST */
#ifdef _SPI
#include "stm8l10x_spi.h"
#endif /* _SPI */
#ifdef _TIM2
#include "stm8l10x_tim2.h"
#endif /* _TIM2 */
#ifdef _TIM3
#include "stm8l10x_tim3.h"
#endif /*_TIM3 */
#ifdef _TIM4
#include "stm8l10x_tim4.h"
#endif /* _TIM4 */
#ifdef _IRTIM
#include "stm8l10x_irtim.h"
#endif /* _IRTIM */
#ifdef _USART
#include "stm8l10x_usart.h"
#endif /* _USART */
#ifdef _COMP
#include "stm8l10x_comp.h"
#endif /* _COMP */
#ifdef _WFE
#include "stm8l10x_wfe.h"
#endif /* _WFE */
#endif /* __STM8L10x_CONF_H */