/***********************************************************************
* I.MX6 查看baudrate确定是否被其他程序占用
* 说明:
* 最近UART口出现了不正常的现象,于是想通过在驱动层的baudrate设置的
* 地方对来确认这件事。
*
* 2016-7-28 深圳 南山平山村 曾剑锋
**********************************************************************/ 一、代码添加情况:
static void
imx_set_termios(struct uart_port *port, struct ktermios *termios,
struct ktermios *old)
{
......
/*
* Ask the core to calculate the divisor for us.
*/
baud = uart_get_baud_rate(port, termios, old, , port->uartclk / );
printk("zengjf <%s> sport line : %d, baud : %d\n", __func__, sport->port.line, baud);
quot = uart_get_divisor(port, baud); ......
} 二、程序运行结果片段:
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :
zengjf <imx_set_termios> sport line : , baud :

最新文章

  1. UNIX中的文件类型
  2. 关于初学者Could not find action or result :No result defined for action com.lyw.action.LoginAction and result success
  3. JVM参数(三)打印所有XX参数及值
  4. c#之第四课
  5. SSL协议运行机制
  6. read 隐藏用户输入
  7. jQuery中$.post()的使用
  8. 妙味课堂——HTML+CSS(第四课)(二)
  9. 实体框架 (EF) 入门 =&gt; 三、CodeFirst 支持的完整特性列表
  10. NOSQL之【redis的安全策略】
  11. 织梦DeDeCms列表分页和内容页分页错位解决办法
  12. _Obj* __STL_VOLATILE* __my_free_list
  13. 《Effective C++ 》学习笔记——条款11
  14. Spout的实现步骤
  15. [置顶] T-sql sql server 设置主键约束、标示列、唯一约束、默认值、约束、创建表
  16. 高效C++规划
  17. Python登录页面及
  18. 搭建腾讯云Linux服务器(Centos6)入门教程
  19. Jmeter——HTTP协议的接口压力测试环境搭建
  20. Swift 新增fileprivate 详解

热门文章

  1. Computer (树形DP)
  2. Eclipse安装插件长时间停留在calculating requirements and dependencies
  3. Intersecting Lines--POJ1269(判断两条直线的关系 &amp;&amp; 求两条直线的交点)
  4. 使用Spring Data Redis操作Redis(集群版)
  5. Springmvc 前台传递参数到后台需要数据绑定
  6. 页面跳转到顶部---bug修改
  7. struts2 input file多文件同时通过ajax提交
  8. 代理服务器squid简介
  9. wikioi 2147 bitset+map解决
  10. IntelliJ 中类似于Eclipse ctrl+o的是ctrl+F12