?? serial.c
字號:
#include "serial.h"void set_serial(int fd){ int status; struct termios Opt; tcgetattr(fd, &Opt); tcflush(fd, TCIOFLUSH); cfsetispeed(&Opt, B9600); cfsetospeed(&Opt, B9600); cfmakeraw(&Opt); status = tcsetattr(fd, TCSANOW, &Opt); if (status != 0) { perror("tcsetattr fd1"); return; } tcflush(fd,TCIOFLUSH); }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -