在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<abbr id="27omo"></abbr>

<menu id="27omo"><dl id="27omo"></dl></menu>
    • <label id="27omo"><tt id="27omo"></tt></label>

      新聞中心

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

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

      作者: 時間:2016-10-08 來源:網(wǎng)絡 收藏

      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 下一頁

      關(guān)鍵詞:

      評論


      相關(guān)推薦

      技術(shù)專區(qū)

      關(guān)閉