Navigation

    全志在线开发者论坛

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

    有没有大佬研究过SDK的GPIO机制

    V Series
    3
    5
    3093
    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.
    • M
      mysteryli LV 7 last edited by

      一路跟踪GPIO的设置函数,最后发现是个空函数,我哪里搞错了呢?
      看了V85X的SDK和D1S的SDK,发现都是这样的
      ea92cb50-3917-4f07-bb80-61f88f2f7467-image.png

      whycan 1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 @mysteryli last edited by

        @mysteryli
        这是哪个文件呢?

        M 2 Replies Last reply Reply Quote Share 0
        • M
          mysteryli LV 7 @whycan last edited by

          @whycan
          kernel/linux-4.9/include/linux/gpio.h
          我想应该不是调用的这个函数,是我查找的方式不对
          IO在内核驱动调用阿志肯定得验证过的

          1 Reply Last reply Reply Quote Share 0
          • M
            mysteryli LV 7 @whycan last edited by

            @whycan
            发现了两个gpio.h不知道什么区别,用的哪个 arch下的那个好像有东西
            759a9f64-1f0d-4bd6-aee1-ec57a2c0a957-image.png

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

              GPIO使用的是linux的pinctrl子系统,具体如下
              https://v853.docs.aw-ol.com/soft/dev_gpio/

              如果需要裸机驱动,可以参考RTOS的HAL驱动
              https://github.com/YuzukiHD/Yuzukilizard/tree/master/Software/BSP/e907_rtos/rtos-hal/hal/source/gpio

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

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

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