feat: 集成RT-Thread Nano系统,添加LCD DMA驱动,完善任务框架
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||
$zip = [System.IO.Compression.ZipFile]::OpenRead('d:\20_AI\LSPi\tools\rtthread-nano.zip')
|
||||
$dest = 'd:\20_AI\LSPi\libs\thirdparty\rt-thread'
|
||||
$prefix = 'rtthread-nano-master/rt-thread/'
|
||||
$count = 0
|
||||
foreach ($e in $zip.Entries) {
|
||||
if ($e.FullName.StartsWith($prefix) -and !$e.FullName.EndsWith('/')) {
|
||||
$rel = $e.FullName.Substring($prefix.Length)
|
||||
$out = Join-Path -Path $dest -ChildPath $rel
|
||||
$dir = [System.IO.Path]::GetDirectoryName($out)
|
||||
if (!(Test-Path $dir)) {
|
||||
New-Item -ItemType Directory -Path $dir -Force > $null
|
||||
}
|
||||
[System.IO.Compression.ZipFileExtensions]::ExtractToFile($e, $out, $true)
|
||||
$count++
|
||||
}
|
||||
}
|
||||
$zip.Dispose()
|
||||
Write-Host "Extracted $count files to $dest"
|
||||
Reference in New Issue
Block a user