Navigation

    全志在线开发者论坛

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

    Tina 系统 C语言 root用户都没权限调用 fopen 打开 led 怎么办?

    MR Series
    1
    1
    695
    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.
    • B
      bobfreedman LV 2 last edited by

      1、debian 系统代码正常,点灯成功。

      2、tina 系统用chmod设置权限也无效, fopen 得到的依然是空指针。

      3、tina 系统用echo 直接对 led 操作是有效的。

      个人推断: fopen 不能调用用户空间的led文件?只能用 include LDE.h 才能操作?

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

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

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