TM STM32Fxxx HAL Libraries
v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle
Main Page
Modules
Data Structures
Examples
stm32fxxx_hal.h
1
26
#ifndef TM_STM32Fxxx_H
27
#define TM_STM32Fxxx_H
28
29
/* C++ detection */
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
140
/* Defines for family used with libraries */
141
/* Uncomment line for your family used with HAL libraries */
142
//#define STM32F0xx /*!< Use STM32F0xx libraries */
143
//#define STM32F4xx /*!< Use STM32F4xx libraries */
144
//#define STM32F7xx /*!< Use STM32F7xx libraries */
145
150
/* Include project config file */
151
#include "defines.h"
152
153
/* Check if HAL drivers enabled */
154
#ifndef USE_HAL_DRIVER
155
#define USE_HAL_DRIVER
156
#endif
157
158
/* Include proper header file */
159
/* STM32F7xx */
160
#if defined(STM32F0xx) || defined(STM32F0XX)
161
#ifndef STM32F0xx
162
#define STM32F0xx
163
#endif
164
#ifndef STM32F0XX
165
#define STM32F0XX
166
#endif
167
#include "stm32f0xx.h"
168
#include "stm32f0xx_hal.h"
169
#endif
170
171
/* STM32F4xx */
172
#if defined(STM32F4xx) || defined(STM32F4XX)
173
#ifndef STM32F4xx
174
#define STM32F4xx
175
#endif
176
#ifndef STM32F4XX
177
#define STM32F4XX
178
#endif
179
#include "stm32f4xx.h"
180
#include "stm32f4xx_hal.h"
181
#endif
182
183
/* STM32F7xx */
184
#if defined(STM32F7xx) || defined(STM32F7XX)
185
#ifndef STM32F7xx
186
#define STM32F7xx
187
#endif
188
#ifndef STM32F7XX
189
#define STM32F7XX
190
#endif
191
#include "stm32f7xx.h"
192
#include "stm32f7xx_hal.h"
193
#endif
194
195
/* Check if anything defined */
196
#if !defined(STM32F0xx) && !defined(STM32F4xx) && !defined(STM32F7xx)
197
#error "There is not selected STM32 family used. Check stm32fxxx_hal.h file for configuration!"
198
#endif
199
200
/* Init main libraries used everywhere */
201
#include "defines.h"
202
#include "tm_stm32_rcc.h"
203
#include "tm_stm32_gpio.h"
204
213
/* C++ detection */
214
#ifdef __cplusplus
215
}
216
#endif
217
218
#endif
stm32fxxx_hal.h
Generated on Thu Jul 28 2016 22:21:37 for TM STM32Fxxx HAL Libraries by
1.8.10