I.MX6 查看baudrate确定是否被其他程序占用
2024-08-30 17:17:45
/***********************************************************************
* 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 :
最新文章
- UNIX中的文件类型
- 关于初学者Could not find action or result :No result defined for action com.lyw.action.LoginAction and result success
- JVM参数(三)打印所有XX参数及值
- c#之第四课
- SSL协议运行机制
- read 隐藏用户输入
- jQuery中$.post()的使用
- 妙味课堂——HTML+CSS(第四课)(二)
- 实体框架 (EF) 入门 =>; 三、CodeFirst 支持的完整特性列表
- NOSQL之【redis的安全策略】
- 织梦DeDeCms列表分页和内容页分页错位解决办法
- _Obj* __STL_VOLATILE* __my_free_list
- 《Effective C++ 》学习笔记——条款11
- Spout的实现步骤
- [置顶] T-sql sql server 设置主键约束、标示列、唯一约束、默认值、约束、创建表
- 高效C++规划
- Python登录页面及
- 搭建腾讯云Linux服务器(Centos6)入门教程
- Jmeter——HTTP协议的接口压力测试环境搭建
- Swift 新增fileprivate 详解
热门文章
- Computer (树形DP)
- Eclipse安装插件长时间停留在calculating requirements and dependencies
- Intersecting Lines--POJ1269(判断两条直线的关系 &;&; 求两条直线的交点)
- 使用Spring Data Redis操作Redis(集群版)
- Springmvc 前台传递参数到后台需要数据绑定
- 页面跳转到顶部---bug修改
- struts2 input file多文件同时通过ajax提交
- 代理服务器squid简介
- wikioi 2147 bitset+map解决
- IntelliJ 中类似于Eclipse ctrl+o的是ctrl+F12