Navigation

    全志在线开发者论坛

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

    请教一下驱动中使用GPIO,如果不使用request函数直接调用个输出函数行不行?

    其它全志芯片讨论区
    2
    2
    1850
    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.
    • D
      dort91011 LV 5 last edited by

      gpio_request(sw_uport->rs485oe_io.gpio, NULL);
                  gpio_direction_output(sw_uport->rs485oe_io.gpio, sw_uport->rs485_fl);
      

      驱动使用了某个GPIO,再应用程序中也用到这个GPIO会怎样?

      1 Reply Last reply Reply Quote Share 0
      • WhycanService
        WhycanService LV 8 last edited by

        先申请再使用,直接输出会冲突。
        驱动用到了也需要驱动释放然后这里重新申请使用

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

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

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