共3条
1/1 1 跳转至页
谁帮一下我呀!关于uclinux下串口RTS/CTS控制的问题。谢谢了!

我是这样编程的:
int status;
ioctl(uart_spfd,TIOCMGET,&status); printf("status=%d\n",status); status&=~TIOCM_RTS; ioctl(uart_spfd,TIOCMSET,status);
ioctl(uart_spfd,TIOCMGET,&status); printf("status=%d\n",status);
status|=TIOCM_RTS; ioctl(uart_spfd,TIOCMSET,status);
ioctl(uart_spfd,TIOCMGET,&status); printf("status=%d\n",status);
却发现前后三次读出的status相等,实际测量RTS端,电平也没有发生变化。
共3条
1/1 1 跳转至页