Vscode编辑stm32工程配置

2.2k words

在工程下创建.vscode文件夹

  • c_cpp_properties.json文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"./Core/Inc",
"./Drivers/STM32h7xx_HAL_Driver/Inc",
"./Drivers/STM32h7xx_HAL_Driver/Inc/Legacy",
"./Drivers/CMSIS/Device/ST/STM32h7xx/Include",
"./Drivers/CMSIS/Include",

"./Middlewares/Lwip/src/include",
"./Middlewares/LwIP/arch",
"./Middlewares/Lwip/src/include/lwip",
"./Middlewares/Lwip/src/include/netif",
"./Middlewares/Lwip/src/core/ipv4",

// "./Middlewares/Third_Party/RealThread_RTOS_RT-Thread/include/",
// "./Middlewares/Third_Party/RealThread_RTOS_RT-Thread/include/libc/include/",
// "./Middlewares/Third_Party/RealThread_RTOS_RT-Thread/include/libc/extension/",
// "./Middlewares/Third_Party/RealThread_RTOS_RT-Thread/include/libc/extension/fcntl/msvc/",
// "./Middlewares/Third_Party/RealThread_RTOS_RT-Thread/include/libc/extension/fcntl/octal/",

"./HYZY/BSP/Inc",
"./HYZY/Function/Inc"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"__CC_ARM",
"USE_HAL_DRIVER",
"STM32H743xx"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-arm64"
}
],
"version": 4
}
  • settings.json文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"files.associations": {
"filter.h": "c",
"data_handle.h": "c",
"bsp_lan8720.h": "c",
"memorymap.h": "c",
"eth.h": "c",
"ethernetif.h": "c",
"stm32h7xx_hal_eth.h": "c",
"sys.h": "c",
"etharp.h": "c",
"string.h": "c",
"bsp_w25q.h": "c",
"pbuf.h": "c"
}
}