Navigation

    全志在线开发者论坛

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

    T113-S3 官方TINA SDK 2.1中 pinctrl 的问题

    其它全志芯片讨论区
    4
    4
    2110
    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.
    • R
      RTQQQ LV 5 last edited by

      今天在使用PG8 PG9 做为TWI1输出的时候,总是有问题,后面查询pinctrl-sun8iw20.c 文件发现,PG9的定义居然是,twi0的,datesheet里面显示function为twi1.不知道什么原因。是我拉的SDK有问题吗?
      1f65b904-5de2-479b-9151-d9a506e0977c-image.png
      df0010ba-7071-4077-bf86-2c13490e635d-image.png

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

        sdk写错了,自行改一下就行

        1 Reply Last reply Reply Quote Share 0
        • Q
          qinhao4832 LV 5 last edited by

          我改了以后,初始化i2c1的时候,不再提示PG9错误。但是实际通讯的时候 PG9 没有波形。楼主改了以后,I2C1正常了吗?

          SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 9),
          		SUNXI_FUNCTION(0x0, "gpio_in"),
          		SUNXI_FUNCTION(0x1, "gpio_out"),
          		SUNXI_FUNCTION(0x2, "uart1"),		/* CTS */
          		SUNXI_FUNCTION(0x3, "twi1"),		/* SDA */
          		SUNXI_FUNCTION(0x4, "gmac0"),		/* RXD3/NULL */
          		SUNXI_FUNCTION(0x5, "uart3"),		/* RX */
          		SUNXI_FUNCTION_IRQ_BANK(0xE, 5, 9),
          		SUNXI_FUNCTION(0xF, "io_disabled")),
          
          T 1 Reply Last reply Reply Quote Share 0
          • T
            tqings LV 4 @qinhao4832 last edited by

            同样问题, 改了之后好了

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

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

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