Error in GPIO functions
It seems the IDE is not able to use the ADC and any functions related to it - my error is that the ADC libraries are not importing properly We are using the HAL libraries.. Additionally, the GPIO and any functions related to it are not being supported. I'm not sure why the files aren't being found by the program. I am using version 1.12.
// define the timer and GPIO pins used
TIM_HandleTypeDef htim; (error here is unknown type name 'TIM_HandleTypeDef'; did you mean 'TIM_TypeDef'?
GPIO_InitTypeDef GPIO_InitStruct; (error here is same as line before)
ADC_HandleTypeDef hadc; (error here is unknown type name 'ADC_HandleTypeDef')
#define PWM_PIN GPIO_PIN_0 (error here is same as line before)
#define PWM_PORT GPIOA (error here is 'GPIO_Pin_0' undeclared (first use in this function)
#define ADC_PIN GPIO_PIN_1 (error here is 'GPIO_Pin_1' undeclared (first use in this function)
#define ADC_PORT GPIOA