其他分享
首页 > 其他分享> > VSCODE打开野火电机代码需要增加的配置

VSCODE打开野火电机代码需要增加的配置

作者:互联网

不增加配置找不到函数的定义

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
}

标签:野火,电机,VSCODE,CMSIS,Libraries,Cpp,workspaceFolder,Include,STM32F4xx
来源: https://blog.csdn.net/u010261063/article/details/118439226