Navigation

    全志在线开发者论坛

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

    A133 动态控制debug串口

    其它全志芯片讨论区
    2
    4
    1885
    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.
    • Z
      zhoutian LV 5 last edited by

      大家好,有哪位大神实现过debug串口的动态控制的,就是可以选择该串口是否为调试串口还是普通串口
      麻烦给下指导

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

        @zhoutian
        没看懂

        Z 1 Reply Last reply Reply Quote Share 0
        • Z
          zhoutian LV 5 @whycan last edited by

          @whycan 您好,现在代码上串口0是做console,debug串口,但是,我想的有没有办法可以在代码中实现,用个标志位判断,将串口0用做console,或者是用做普通的串口

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

            @zhoutian
            目前我知道的就是修改 bootargs 的 console=/dev/ttySx 这个参数。

            这样没法实现你说的动态控制。

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

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

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