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.
想问一些 beaglebone black 的pwm 有几种操作方法
目前用的是插入capes的方法,分别插入am33xx_pwm和bone_pwm_P9_22
插入两个capes之后出来/sys/bus/platform/drivers/pwm_test/pwm_test_P9_22.12文件
操作该目录下的文件就能修改频率占空比等
好现在问题来了,由于插入pwm capes的时间不同 所以pwm_test_P9_22.xx这个文件的.xx经常变 导致用C操作时不能确定这个目录名 造成无法操作
请问有什么解决方法, 还有需要经常修改占空比 大概10ms之内1次,而通过设备树修改占空比需要先echo 0>run 在修改后 ech1 >run 这样是否会很耗时,有没有其他方法
求解: