From dcf5c3f7b5351888595bf97943c82a5b1f668ab2 Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Mon, 15 Jun 2026 14:25:30 +0800 Subject: [PATCH] temp --- .clangd | 2 ++ .vscode/c_cpp_properties.json | 8 ++++++++ .vscode/settings.json | 15 +++++++++++++++ Core/Src/main.c | 2 +- 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .clangd create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json diff --git a/.clangd b/.clangd new file mode 100644 index 0000000..ec0b890 --- /dev/null +++ b/.clangd @@ -0,0 +1,2 @@ +CompileFlags: + CompilationDatabase: build diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..a1c7a21 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,8 @@ +{ + "configurations": [ + { + "name": "STM32", + "compileCommands": "${workspaceFolder}/build/compile_commands.json" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8627b90 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,15 @@ +{ + "cmake.cmakePath": "cube-cmake", + "cmake.configureArgs": [ + "-DCMAKE_COMMAND=cube-cmake" + ], + "cmake.preferredGenerators": [ + "Ninja" + ], + "stm32cube-ide-clangd.path": "cube", + "stm32cube-ide-clangd.arguments": [ + "starm-clangd", + "--query-driver=${env:CUBE_BUNDLE_PATH}/gnu-tools-for-stm32/14.3.1+st.2/bin/arm-none-eabi-gcc*", + "--query-driver=${env:CUBE_BUNDLE_PATH}/gnu-tools-for-stm32/14.3.1+st.2/bin/arm-none-eabi-g++*" + ] +} \ No newline at end of file diff --git a/Core/Src/main.c b/Core/Src/main.c index 1bf1f5f..39bcd4e 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -93,7 +93,7 @@ int main(void) /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); - MX_IWDG_Init(); + //MX_IWDG_Init(); MX_USART1_UART_Init(); MX_TIM6_Init(); MX_FDCAN1_Init();