Added script
This commit is contained in:
parent
d16d60fd14
commit
10a3a302d1
|
|
@ -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
|
||||||
|
|
@ -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
4
main.c
|
|
@ -236,9 +236,9 @@ static void vInitMCU(void)
|
||||||
rtc_lwoff_wait();
|
rtc_lwoff_wait();
|
||||||
|
|
||||||
pmu_backup_write_disable();
|
pmu_backup_write_disable();
|
||||||
}
|
}
|
||||||
else if (TRUE == rtc_flag_get(RTC_CTL_OVIF))
|
else if (TRUE == rtc_flag_get(RTC_CTL_OVIF))
|
||||||
rtc_flag_clear(RTC_CTL_OVIF);
|
rtc_flag_clear(RTC_CTL_OVIF);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Configure GPIO Alternate UART function */
|
/* Configure GPIO Alternate UART function */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue