Added script

This commit is contained in:
Alexey Bazlaev 2023-03-24 18:44:37 +07:00
parent d16d60fd14
commit 10a3a302d1
4 changed files with 103 additions and 70 deletions

10
Doc/READ-COM.ps1 Normal file
View File

@ -0,0 +1,10 @@
function read-com {
$port= new-Object System.IO.Ports.SerialPort COM8,115200,None,8,one
$port.Open()
do {
$line = $port.ReadLine()
Write-Host $line # Do stuff here
}
while ($port.IsOpen)
}
read-com

11
Doc/loop.ps1 Normal file
View File

@ -0,0 +1,11 @@
$j=1
While ($j -le 100000)
{
$i=1
While ($i -le 8)
{
.\echotool.exe 192.168.1.2 /p tcp /r 7 /d RF0$i /n 1
$i++
}
$j++
}

File diff suppressed because one or more lines are too long

4
main.c
View File

@ -236,9 +236,9 @@ static void vInitMCU(void)
rtc_lwoff_wait();
pmu_backup_write_disable();
}
}
else if (TRUE == rtc_flag_get(RTC_CTL_OVIF))
rtc_flag_clear(RTC_CTL_OVIF);
rtc_flag_clear(RTC_CTL_OVIF);
#endif
/* Configure GPIO Alternate UART function */