工具/软件:
是否有与 libgpiod 类似的内核层以名称运行 GPIO?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:
是否有与 libgpiod 类似的内核层以名称运行 GPIO?
尊敬的 Bin:
我们的工程包含许多使用传统方法(使用 module_inti 和 module_exit)的字符设备驱动程序。 我尝试使用 devm_gpiod_get 来访问器件树中定义的 GPIO 节点、但无法获取 GPIO。
后来,我发现 可能有必要将驱动程序转换为平台驱动程序模型,以便使用 gpiod 框架。
这是真的吗? 使用传统方法实现的驱动程序能否直接利用 gpiod 框架?