Commit 4fd74edf authored by ttwards's avatar ttwards
Browse files

set zero, sync

parent 87662696
Loading
Loading
Loading
Loading

.clang-fomat

0 → 100644
+3 −0
Original line number Diff line number Diff line
// BasedOnStyle: Google
// IndentWidth: 4
// ColumnLimit: 120
 No newline at end of file

.clang-tidy

0 → 100644
+5 −0
Original line number Diff line number Diff line
Checks: "modernize-*,-modernize-use-nullptr,clang-analyzer-*"
WarningsAsErrors: "*"
HeaderFilterRegex: "^(drivers/.*|include/zephyr/drivers/.*)$"
AnalyzeTemporaryDtors: false
FormatStyle: file
 No newline at end of file
+4 −3
Original line number Diff line number Diff line
@@ -12,12 +12,13 @@
            "runToEntryPoint": "main",
            "servertype": "openocd",
            "configFiles": [
                "interface/stlink.cfg",
                "target/stm32f4x.cfg"
                // "interface/stlink.cfg",
                // "target/stm32f4x.cfg"
                "esp32dap.cfg"
            ],
            "svdFile": "${workspaceFolder}/boards/dji/robomaster_board_c/support/stm32f407.svd",
            "preRestartCommands": [
                "monitor reset halt"
                // "monitor reset halt"
            ],
            "gdbPath": "${userHome}/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
            "liveWatch": {
+24 −1
Original line number Diff line number Diff line
@@ -5,6 +5,11 @@
            "task": "Build",
            "tooltip": "Build the Zephyr project"
        },
        {
            "label": "Tidy",
            "task": "Tidy",
            "tooltip": "Build the Zephyr project"
        },
        {
            "label": "Flash",
            "task": "Flash",
@@ -31,5 +36,23 @@
    "cmake.configureOnOpen": false,
    "zephyr-ide.use-zephyr-ide-json": true,
    "zephyr-ide.projects": null,
    "mcu-debug.rtos-views.showRTOS": false
    "mcu-debug.rtos-views.showRTOS": false,
    "clangd.arguments": [
        // 在后台自动分析文件(基于complie_commands)
        "--background-index",
        // 标记compelie_commands.json文件的目录位置
        "--compile-commands-dir=build",
        // 同时开启的任务数量
        "-j=8",
        // clang-tidy功能
        "--clang-tidy",
        // 全局补全(会自动补充头文件)
        "--all-scopes-completion",
        // 详细补全
        "--completion-style=detailed",
        // 补充头文件
        "--header-insertion=iwyu",
        // pch优化的位置
        "--pch-storage=disk",
  ],
}
 No newline at end of file
+11 −11
Original line number Diff line number Diff line
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build New",
            "type": "shell",
            "command": "west build -p always -b robomaster_board_c motor",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": ["$gcc"],
            "detail": "Build the Zephyr project"
        },
        {
            "label": "Build",
            "type": "shell",
@@ -34,6 +23,17 @@
            "problemMatcher": [],
            "detail": "Flash the Zephyr project to the board"
        },
        {
            "label": "Tidy",
            "type": "shell",
            "command": "west build -t tidy",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": ["$gcc"],
            "detail": "Tidy up codes"
        },
        {
            "label": "Monitor",
            "type": "shell",
Loading