includes inside include - header files
I am trying to compile a project for STM32F4Discovery board and I have a problem with "invisible includes".
For example, in file stm32f4_
#include "stm32f4xx.h"
#include "stm32f4_
#include "stm32f4_
#include "fonts.c"
In file stm32f4xx.h is included next file (USE_STDPERIPH_
#ifdef USE_STDPERIPH_
#include "stm32f4xx_conf.h"
#endif /* USE_STDPERIPH_
and in file stm32f4xx_conf.h are included proper files:
...
#include "stm32f4xx_gpio.h"
...
All above doesn't work, I have unknown type name 'GPIO_InitTypeDef', 'GPIO_Pin_0' undeclared and so on.
Direct include works, i.e.
#include "stm32f4xx.h"
#include "stm32f4xx_gpio.h" <---- Added
#include "stm32f4_
#include "stm32f4_
#include "fonts.c"
Why indirect includes doesn't work?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Terry Guo
- Solved:
- Last query:
- Last reply: