修改串口号

This commit is contained in:
zzh 2026-03-10 09:50:52 +08:00
parent db58b1a99b
commit 56972934cc

8
main.c
View File

@ -3048,11 +3048,11 @@ int main(int argc, char *argv[])
system("echo 113 > /sys/class/gpio/export");//pin 113 yellow
system("echo out > /sys/class/gpio/gpio113/direction");
#endif
uart_open(&uartRecvData,"/dev/ttyS0");//DT
uart_open(&uartRecvData,"/dev/ttysWK0");//DT
uart_init(&uartRecvData,115200,8,1,'N',0);
uart_open(&uartRecvBack,"/dev/ttyS1");//HT
uart_open(&uartRecvBack,"/dev/ttysWK1");//HT
uart_init(&uartRecvBack,115200,8,1,'N',0);
uart_open(&uartSend,"/dev/ttyS5");//GT U12 ttyS0,U14 ttyS4,U21 ttysWK0 U13 ttysWK1 U15 ttysWK2 U22 ttysWK3 U20 ttyS1
uart_open(&uartSend,"/dev/ttysWK5");//GT U12 ttyS0,U14 ttyS4,U21 ttysWK0 U13 ttysWK1 U15 ttysWK2 U22 ttysWK3 U20 ttyS1
uart_init(&uartSend,115200,8,1,'N',0);
#if 0
@ -3201,6 +3201,7 @@ int main(int argc, char *argv[])
}
#endif
#if 0
ret = pthread_create(&pt_ota,NULL,thread_ota,NULL);
if(ret!=0){
LOG_I("pthread_create ota fail\n");
@ -3216,6 +3217,7 @@ int main(int argc, char *argv[])
LOG_I("pthread_create doota success\n");
pthread_detach(pt_doota);
}
#endif
#if 1
ret = pthread_create(&pt_readqr,NULL,thread_readqr,NULL);
if(ret!=0){