大牙盘GD

CN\zhangkai71 c73e66ffbc feat():完成powerlimit解封,编译通过 il y a 4 mois
MSTLibraries fc5713c10b boot中采用0x0803D00作为存储升级标志地址,Flash校验程序区域变更为0x08003000-0x0803D000 il y a 5 mois
Std project 1aefc26c98 New Init il y a 2 ans
User project c73e66ffbc feat():完成powerlimit解封,编译通过 il y a 4 mois
api @ 5755de440c 418085e91a adc采样中非关键项改到5ms中执行检测 il y a 1 an
tests f2f2e5f7c1 feat:温度限制Iq,电量限制功率,测试通过 il y a 1 an
tools 1f0239a0a1 1.前后灯独立控制;2.增加电池容量的计算(上报单位功耗、剩余续航);3.CV写入增加反馈;4.FW、HW、CV、SN格式调整; il y a 5 mois
.clang-format 114b12a22e feat:sim_sfunc编译通过 il y a 2 ans
.gitignore f8a36306b8 fix: 移除版本文件 il y a 2 ans
.gitlab-ci.yml 8e2a33b453 fix: 再次修复 il y a 2 ans
.gitmodules 07497ab497 feat:增加子模块 il y a 2 ans
GD32F305xC.icf 1aefc26c98 New Init il y a 2 ans
ReadMe.md 400d40c634 feat:sim_board转速环测试可行 il y a 2 ans
WLMCP.ewp c73e66ffbc feat():完成powerlimit解封,编译通过 il y a 4 mois
WLMCP.eww 1aefc26c98 New Init il y a 2 ans
WLMCP.icf 1aefc26c98 New Init il y a 2 ans
WLMCP_LIB.ewp c73e66ffbc feat():完成powerlimit解封,编译通过 il y a 4 mois
WLMCP_PACKED.ewp c73e66ffbc feat():完成powerlimit解封,编译通过 il y a 4 mois
xmake.lua f2f2e5f7c1 feat:温度限制Iq,电量限制功率,测试通过 il y a 1 an

ReadMe.md

pipeline status coverage report

所需开发环境、工具

环境 用途 备注
IAR 8.4 MCU程序编译调试 自行安装
Visual Studio 2022 仿真调试、单元测试 自行安装,需要安装C++开发环境
Matlab/Simulink 2020b 仿真测试 自行安装
xmake 单元测试构建调试 tools目录下有安装包,配合vscode xmake extension使用
clangd 代码提示、转跳、补全 可直接使用tools目录下可执行文件,配合vscode clangd extension使用
Python 自动化测试 自行安装,建议使用conda
doxygen 文档生成 自行安装

VS code开发环境配置说明

注:请先完成基本工具的安装

xmake扩展安装配置(需要安装xmake,Visual Studio 2022)

在VS Code扩展中搜索xmake,点击安装

安装后在底部状态栏platform选择windows,architecture选择x64,mode先择debug

点击Build即可构建项目,确认项目能够成功构建后,按下组合键"ctrl+shift+p",输入"xmake",在自动补全中选择"xmake: UpdateIntellisense",确认.vscode目录下生成了"compile_commands.json"文件

clangd扩展安装配置

Step 1

在VS Code扩展中搜索C/C++ Extension Pack,点击安装

在VS code工作区设置(按ctrl+,打开,点击工作区)中搜索"c_cpp engine",将"C_Cpp Intelli Engine"配置为

disabled

Step 2

在VS Code扩展中搜索clangd,点击安装

在VS code工作区设置(按ctrl+,打开,点击工作区)中搜索clangd,将Clangd:Arguments配置为

--compile-commands-dir=${workspaceFolder}/.vscode

将Clangd:Path配置为

${workspaceFolder}/tools/clangd.exe

按下组合键"ctrl+shift+p",输入"clangd",在自动补全中选择"clangd: Restart language server"运行,底部状态栏中显示"clangd:idle"表示工作正常

安装C++ TestMate

在VS Code扩展中搜索C++ TestMate,点击安装,无需配置

安装后即可在测试菜单中运行单元测试

(可选)安装todo tree

在VS Code扩展中搜索todo tree,点击安装

(可选)安装Doxygen Documentation Generator

在VS Code扩展中搜索Doxygen Documentation Generator,点击安装

安装后输入"/**"后回车,即可自动创建doxygen注释

vscode 插件清单

ms-vscode.cpptools-extension-pack

matepek.vscode-catch2-test-adapter

llvm-vs-code-extensions.vscode-clangd

cschlosser.doxdocgen

eamodio.gitlens

Gruntfuggly.todo-tree

tboox.xmake-vscode