'VSCode marks GPIO_TypeDef in HAL library as unknown

I have some functions that refer to GPIO_TypeDef struct from STM32_HAL library and in Keil I recieve no errors in compilation, but VSCode marks it as "unknown identificator" error. I fixed it with adding

#include "stm32f103xe.h"

to main.hand both Keil and VScode now take it with no problems, but maybe I had to change something in VSCode settings to fix that problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source