From 53de825c4c4d8325c02341177f62ab84897eb5ee Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sat, 25 Jul 2026 22:09:43 +0800 Subject: [PATCH] update vscode task.json and add stm32flash tools --- ex2.i2c-bitbang/.gitignore | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/ex2.i2c-bitbang/.gitignore b/ex2.i2c-bitbang/.gitignore new file mode 100644 index 0000000..42d5d2e --- /dev/null +++ b/ex2.i2c-bitbang/.gitignore @@ -0,0 +1,47 @@ +# ===== .vscode: 只保留下面三个文件 ===== +.vscode/* +!.vscode/stm32flash.bat +!.vscode/stm32flash.exe +!.vscode/tasks.json + +# ===== Keil MD: 只保留下面两个文件 ===== +MDK-ARM/* +!MDK-ARM/ISKBoard.uvoptx +!MDK-ARM/ISKBoard.uvprojx + +# ===== STM32CubeIDE: 忽略下面文件 ===== +.project + +# ===== 只保留这两个文件不忽略 ===== +# main.c +Core/* +!Core/Src/ +Core/Src/* +!Core/Src/main.c + +# ===== 忽略 CMake 相关生成文件 ===== +.clangd +.mxproject +CMakePresets.json +cmake/ +.settings/ + +# ===== 忽略启动文件、链接脚本 ===== +*.ld +startup_stm32*.s + +# ===== 忽略厂商 SDK(如果之后 Drivers/ 出现的话)===== +Drivers/ +Middlewares/ + +# ===== 忽略编译产物 ===== +build/ +Debug/ +Release/ +*.o +*.d +*.a +*.elf +*.bin +*.hex +*.map -- Gitblit v1.10.0