Question
unknown type name 'ADC_HandleTypeDef'
Posted on September 20, 2017 at 23:41
Hi,
I am trying to add the ADC handles into a struct that is in a seperate header file. For some reason I cannot get the ADC handles' typedef to be located after including stm32f4xx_hal.h.
My struct looks is as follows
typedef struct mouse_device{
const ADC_HandleTypeDef* adc_x; const ADC_HandleTypeDef* adc_y;signed long x_cal;
signed long y_cal;mouse_buf_t mouse_buf;
} mouse_device_t;And at the top of the header I have only one include and that is &sharpinclude 'stm32f4xx_hal.h'
I am a little confused as to why it does not work as after tracing though the headers the stm32f4xx_hal leads to the adc header which contains the typedef.
Cheers#include #adc #hal