Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    linux gpio调试问题请教

    Linux
    1
    1
    646
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lnk_dawson LV 2 last edited by xiaowenge

      从 Linux 4.8 版本开始,Linux 引入了新的 gpio 操作方式,GPIO 字符设备。不再使用
      以前 SYSFS 方式在"/sys/class/gpio"目录下来操作 GPIO,而是基于"文件描述符"的字符
      设备,每个 GPIO 组在"/dev"下有一个对应的 gpiochip 文件,例如"/dev/gpiochip0 对应 G
      PIOA, /dev/gpiochip1 对应 GPIOB",我想问一下怎么在dev/下添加这个gpiichip呢,我现在的只到gpiochip2但是我要用到3的怎么添加一个呢
      636771bd-b29a-42de-9942-2b6715f932f4-[GXO]{D)8Q7G94_V3WIRQ51.jpg

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策