kicad:EasyEDA→KiCad 工程(Board1/Board2)、库、脚本与评审文档(IC 引脚、风扇、热、EDL 供电、布局规则)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
这个提交包含在:
zhou yang
2026-10-04 19:24:42 +08:00
共同撰写人 Claude Opus 5.5
父节点 1d842cf45f
当前提交 bfe094a5d7
共修改 173 个文件,包含 401864 行新增和 0 行删除
+39
查看文件
@@ -0,0 +1,39 @@
param(
[string]$Firmware = "$PSScriptRoot/../out/firmware-fan-r2",
[string]$Msvc = 'C:/Program Files (x86)/Microsoft Visual Studio/18/BuildTools/VC/Tools/MSVC/14.50.35717',
[string]$Sdk = 'C:/Program Files (x86)/Windows Kits/10',
[string]$SdkVersion = '10.0.26100.0'
)
$ErrorActionPreference = 'Stop'
$fw = (Resolve-Path -LiteralPath $Firmware).Path
$build = [IO.Path]::GetFullPath("$PSScriptRoot/../out/fan-pin-tests")
New-Item -ItemType Directory -Path $build -Force | Out-Null
$oldInclude = $env:INCLUDE
$oldLib = $env:LIB
$oldPath = $env:PATH
try {
$env:INCLUDE = "$Msvc/include;$Sdk/Include/$SdkVersion/ucrt;$Sdk/Include/$SdkVersion/shared;$Sdk/Include/$SdkVersion/um"
$env:LIB = "$Msvc/lib/x64;$Sdk/Lib/$SdkVersion/ucrt/x64;$Sdk/Lib/$SdkVersion/um/x64"
$env:PATH = "$Msvc/bin/Hostx64/x64;$env:PATH"
$hal = "$fw/components/phonerail_hal"
$drv = "$fw/components/drv"
$sources = @("$fw/main/rail_cfg.c", "$fw/test/test_rail_cfg.c", "$fw/third_party/unity/unity.c")
$sources += (Get-ChildItem "$hal/*.c", "$hal/sim/*.c", "$drv/*.c").FullName
$includes = @("$fw/main", "$fw/third_party/unity", "$hal/include", "$hal/sim", "$drv/include")
$flags = @('/nologo', '/std:c11', '/utf-8', '/W3', '/WX')
$flags += $includes | ForEach-Object { "/I$_" }
Push-Location $build
try {
& "$Msvc/bin/Hostx64/x64/cl.exe" @flags @sources /Fe:test_rail_cfg.exe 2>&1 |
Tee-Object -FilePath compile.log
if ($LASTEXITCODE -ne 0) { throw "Pin test compilation failed: $LASTEXITCODE" }
& ./test_rail_cfg.exe 2>&1 | Tee-Object -FilePath tests.log
if ($LASTEXITCODE -ne 0) { throw "Pin tests failed: $LASTEXITCODE" }
} finally {
Pop-Location
}
} finally {
$env:INCLUDE = $oldInclude
$env:LIB = $oldLib
$env:PATH = $oldPath
}