不增加配置找不到函数的定义
settings.json
{
"files.associations": {
"bsp_debug_usart.h": "c"
},
"C_Cpp.inactiveRegionOpacity": null, "C_Cpp.intelliSenseEngineFallback": "Disabled", //需要添加的
"C_Cpp.intelliSenseEngine": "Tag Parser",
}
c_cpp_properties.json
{
"configurations": [
{
"name": "stm32",
"includePath": [
"${workspaceFolder}",
"${workspaceFolder}/Libraries/STM32F4xx_HAL_Driver/Inc",
"${workspaceFolder}/Libraries/CMSIS/Include",
"${workspaceFolder}/Libraries/CMSIS/Device/ST/STM32F4xx/Include",
"${workspaceFolder}/Libraries/CMSIS/Device/ST/STM32F4xx/Include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"__CC_ARM",
"USE_STDPERIPH_DRIVER",
"STM32F10X_HD"
],
"intelliSenseMode": "windows-msvc-x64",
"cStandard": "c17",
"cppStandard": "c++17"
}
],
"version": 4
}