中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > linux基礎復習(7)串口應用開發(fā)

        linux基礎復習(7)串口應用開發(fā)

        作者: 時間:2016-10-08 來源:網絡 收藏

        printf(fcntl=%dn,fcntl(fd, F_SETFL,0));

        if(isatty(STDIN_FILENO)==0)

        printf(standard input is not a terminal devicen);

        else

        printf(isatty success!n);

        printf(fd-open=%dn,fd);

        return fd;

        }

        int main(void)

        {

        int fd;

        int nread,i;

        char buff[]=Hellon;

        if((fd=open_port(fd,1))0){

        perror(open_port error);

        return;

        }

        if((i=set_opt(fd,115200,8,'N',1))0){

        perror(set_opt error);

        return;

        }

        printf(fd=%dn,fd);

        // fd=3;

        nread=read(fd,buff,8);

        printf(nread=%d,%sn,nread,buff);

        close(fd);

        return;

        }


        上一頁 1 2 3 下一頁

        關鍵詞:

        評論


        相關推薦

        技術專區(qū)

        關閉