generated from RoboMaster-Club/control-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6d2359c
Showing
120 changed files
with
9,239 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build Project | ||
on: | ||
push: | ||
paths: | ||
- "src/**" | ||
- "lib/**" | ||
pull_request: | ||
paths: | ||
- "src/**" | ||
- "lib/**" | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" # Ensure submodules are checked out | ||
|
||
- name: Set up MSYS2 | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
update: true | ||
install: mingw-w64-x86_64-arm-none-eabi-gcc make | ||
|
||
- name: Build project | ||
run: | | ||
make -j24 V=1 | ||
shell: msys2 {0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/* | ||
.vscode/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "lib/typec-board-base"] | ||
path = lib/typec-board-base | ||
url = https://github.com/RoboMaster-Club/typec-board-base.git | ||
[submodule "lib/typea-board-base"] | ||
path = lib/typea-board-base | ||
url = https://github.com/RoboMaster-Club/typea_board_base.git | ||
[submodule "lib/CMSIS-DSP"] | ||
path = lib/CMSIS-DSP | ||
url = https://github.com/ARM-software/CMSIS-DSP.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Mac", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"${workspaceFolder}/lib/typec-board-base/Core/Inc", | ||
"${workspaceFolder}/lib/typec-board-base/Drivers/STM32F4xx_HAL_Driver/Inc", | ||
"${workspaceFolder}/lib/typec-board-base/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy", | ||
"${workspaceFolder}/lib/typec-board-base/Middlewares/Third_Party/FreeRTOS/Source/include", | ||
"${workspaceFolder}/lib/typec-board-base/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS", | ||
"${workspaceFolder}/lib/typec-board-base/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F", | ||
"${workspaceFolder}/lib/typec-board-base/Drivers/CMSIS/Device/ST/STM32F4xx/Include", | ||
"${workspaceFolder}/lib/typec-board-base/Drivers/CMSIS/Include", | ||
"${workspaceFolder}/lib/CMSIS-DSP/Include", | ||
"${workspaceFolder}/src/devices/inc", | ||
"${workspaceFolder}/src/algo/inc", | ||
"${workspaceFolder}/src/bsp/inc", | ||
"${workspaceFolder}/src/app/inc" | ||
], | ||
"defines": [ | ||
"USE_HAL_DRIVER", | ||
"STM32F407xx" | ||
], | ||
"macFrameworkPath": [ | ||
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" | ||
] | ||
}, | ||
{ | ||
"name": "Win32", | ||
"includePath": [ | ||
"${workspaceFolder}\\**", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Core\\Inc", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Drivers\\STM32F4xx_HAL_Driver\\Inc", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Drivers\\STM32F4xx_HAL_Driver\\Inc\\Legacy", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Middlewares\\Third_Party\\FreeRTOS\\Source\\include", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Middlewares\\Third_Party\\FreeRTOS\\Source\\CMSIS_RTOS", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Middlewares\\Third_Party\\FreeRTOS\\Source\\portable\\RVDS\\ARM_CM4F", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Drivers\\CMSIS\\Device\\ST\\STM32F4xx\\Include", | ||
"${workspaceFolder}\\lib\\typec-board-base\\Drivers\\CMSIS\\Include", | ||
"${workspaceFolder}\\lib\\CMSIS-DSP\\Include", | ||
"${workspaceFolder}\\src\\devices\\inc", | ||
"${workspaceFolder}\\src\\algo\\inc", | ||
"${workspaceFolder}\\src\\bsp\\inc", | ||
"${workspaceFolder}\\src\\app\\inc", | ||
"${workspaceFolder}\\src\\ui\\inc" | ||
], | ||
"defines": [ | ||
"USE_HAL_DRIVER", | ||
"STM32F407xx" | ||
] | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "dap (Win)", | ||
"cwd": "${workspaceRoot}", | ||
"executable": "${workspaceRoot}\\build\\control-base.elf", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"svdFile": "STM32F407.svd", | ||
"servertype": "openocd", //GDB server | ||
"configFiles": [ | ||
"${workspaceRoot}/config/openocd_cmsis_dap.cfg" // config | ||
], | ||
"runToEntryPoint": "main", // stop at main | ||
"rtos": "FreeRTOS", | ||
"liveWatch": { | ||
"enabled": true, | ||
"samplesPerSecond": 4 | ||
}, | ||
"preLaunchTask": "build (Windows)" // build before debug | ||
}, | ||
{ | ||
"name": "stlink (Win)", | ||
"cwd": "${workspaceRoot}", | ||
"executable": "${workspaceRoot}\\build\\control-base.elf", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"svdFile": "STM32F407.svd", | ||
"servertype": "openocd", //GDB server | ||
"configFiles": [ | ||
"${workspaceRoot}/config/openocd_stlink.cfg" // config | ||
], | ||
//"runToEntryPoint": "main", // stop at main | ||
//"rtos": "FreeRTOS", | ||
"liveWatch": { | ||
"enabled": true, | ||
"samplesPerSecond": 4 | ||
}, | ||
"preLaunchTask": "build (Windows)" // build before debug | ||
}, | ||
{ | ||
"name": "dap", | ||
"cwd": "${workspaceRoot}", | ||
"executable": "${workspaceRoot}/build/control-base.elf", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"svdFile": "STM32F407.svd", | ||
"servertype": "openocd", //GDB server | ||
"configFiles": [ | ||
"${workspaceRoot}/config/openocd_cmsis_dap.cfg" // config | ||
], | ||
//"runToEntryPoint": "main", // stop at main | ||
"rtos": "FreeRTOS", | ||
"liveWatch": { | ||
"enabled": true, | ||
"samplesPerSecond": 4 | ||
}, | ||
"preLaunchTask": "build" // build before debug | ||
}, | ||
{ | ||
"name": "stlink", | ||
"cwd": "${workspaceRoot}", | ||
"executable": "${workspaceRoot}\\build\\control-base.elf", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"svdFile": "STM32F407.svd", | ||
"servertype": "openocd", //GDB server | ||
"configFiles": [ | ||
"${workspaceRoot}/config/openocd_stlink.cfg" // config | ||
], | ||
//"runToEntryPoint": "main", // stop at main | ||
//"rtos": "FreeRTOS", | ||
"liveWatch": { | ||
"enabled": true, | ||
"samplesPerSecond": 4 | ||
}, | ||
"preLaunchTask": "build" // build before debug | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
/* For Unix-Like (Linux and MacOS) */ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "make -j24 V=1", | ||
"args": [], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
}, | ||
"problemMatcher": { | ||
"owner": "cpp", | ||
"fileLocation": ["absolute"], | ||
"pattern": { | ||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"severity": 4, | ||
"message": 5 | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "flash", | ||
"type": "shell", | ||
"command": "make -j24 V=1; make download", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "rebuild", | ||
"type": "shell", | ||
"command": "git submodule update; make clean_unix; make -j24 V=1", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
}, | ||
"problemMatcher": [], | ||
}, | ||
/* For Windows */ | ||
{ | ||
"label": "build (Windows)", | ||
"type": "shell", | ||
"command": "mingw32-make -j24 V=1", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "rebuild (Windows)", | ||
"type": "shell", | ||
"command": "git submodule update; mingw32-make clean; mingw32-make -j24 V=1", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
}, | ||
"problemMatcher": [], | ||
}, | ||
{ | ||
"label": "clean (Windows)", | ||
"type": "shell", | ||
"command": "mingw32-make clean", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "flash (Windows)", | ||
"type": "shell", | ||
"command": "mingw32-make -j24 V=1; mingw32-make download_powershell", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.