Linux-GPIO 配置pull up、pull down、no pull

|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| author | daisy.skye的博客_CSDN博客-Qt,嵌入式,Linux领域博主 https://blog.csdn.net/qq_40715266?type=blog |
| 系列 | 基于RK3568的Linux驱动开发------GPIO知识点(一)_daisy.skye的博客-CSDN博客基于RK3568的Linux驱动开发------ GPIO知识点(二)_daisy.skye的博客-CSDN博客 |

|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| adb 查看 显示不同的状态 | |
| NO PULL | bias-disable; /* No PULL */ drive-strength = <2>; /* 2 MA */ |

代码修改:

复制代码
			qdsd_cmd_trace: cmd_trace {`
				`config` `{`
`					pins =` `"gpio2";`
`					bias-pull-down;` `/* pull down */`
`					drive-strength =` `<2>;` `/* 2 MA */`
				`};`
			`};`
`			qdsd_cmd_swduart: cmd_uart {`
				`config` `{`
`					pins =` `"gpio3";`
`					bias-pull-up;` `/* pull up */`
`					drive-strength =` `<2>;` `/* 2 MA */`
				`};`
			`};`
`			qdsd_cmd_jtag: cmd_jtag {`
				`config` `{`
`					pins =` `"gpio4";`
`					bias-disable;` `/* NO pull */`
`					drive-strength =` `<8>;` `/* 8 MA */`
				`};`
			`};`
`
相关推荐
开压路机2 小时前
进程控制
linux·服务器
香蕉鼠片2 小时前
跨平台开发到底是什么
linux·windows·macos
bukeyiwanshui4 小时前
20260417 DNS实验
linux
代码中介商5 小时前
Linux 帮助手册与用户管理完全指南
linux·运维·服务器
weixin_449173657 小时前
Linux -- 项目中查找日志的常用Linux命令
linux·运维·服务器
想唱rap8 小时前
C++智能指针
linux·jvm·数据结构·c++·mysql·ubuntu·bash
Strugglingler8 小时前
基于whiptail开发shell导航工具
linux·shell·ui设计·whiptail
艾醒(AiXing-w)8 小时前
Linux系统管理(二十)——Linux root磁盘不足?一站式应急清理方案(亲测可用)
linux·运维·服务器
小义_9 小时前
【Kubernetes】(五) pod2
linux·云原生·容器·kubernetes
哇哦9829 小时前
渗透安全(渗透防御)②
linux·安全·渗透防御