Hi,
We are using VF61 with linux version 2.6
We plan to use PWMC for our application
But no folder is present as sys/class/pwm/pwmchip0/pwm1/ in the os
What changes should be made to facilitate the use of PWM C
Regards
Hi,
We are using VF61 with linux version 2.6
We plan to use PWMC for our application
But no folder is present as sys/class/pwm/pwmchip0/pwm1/ in the os
What changes should be made to facilitate the use of PWM C
Regards
One needs to export the same for it to be visible and usable.
root@colibri-vf:~# cd /sys/class/pwm/pwmchip0/
root@colibri-vf:/sys/class/pwm/pwmchip0# ls
device export npwm power subsystem uevent unexport
root@colibri-vf:/sys/class/pwm/pwmchip0# echo 1 > export
root@colibri-vf:/sys/class/pwm/pwmchip0# ls
device export npwm power pwm1 subsystem uevent unexport
root@colibri-vf:/sys/class/pwm/pwmchip0# cd pwm1/
root@colibri-vf:/sys/class/pwm/pwmchip0/pwm1# ls
duty_cycle enable period polarity power uevent
Also please refer PWM Linux article.
Thanks Its good now