本站首页    管理页面    写新日志    退出


«Mar.2007»
123
45678910
11121314151617
18192021222324
25262728293031


公告

谦卑,荣誉,牺牲,英勇,怜悯,诚实,精神,公正。


我的分类(专题)

日志更新

最新评论

留言板

链接

 

 


Blog信息
blog名称:
日志总数:183
评论数量:698
留言数量:7
访问次数:3050674
建立时间:2005年12月29日




[编程学习]linux com
网上资源,  软件技术

newqiang 发表于 2007/3/15 22:32:53

  char_t *dev  = "/dev/ttyS0";//com1 char_t *dev  = "/dev/ttyS0";//com1
  int32_t fd = open( dev, O_RDWR | O_NOCTTY );//| O_NOCTTY  );//O_NDELAY );//| O_NOCTTY | O_NDELAY O_NONBLOCK
  if (-1 == fd)
  {
              perror("Can't Open Serial Port");
              exit(1);
  }
  else
  {
      set_speed(fd,115200 );
          if (set_Parity(fd,8,1,'N') == FALSE) 
      {<


阅读全文(5790) | 回复(0) | 编辑 | 精华 | 删除
 


« 1



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 1.282 second(s), page refreshed 144818691 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号