It sets up pwm 0 as being exported via sysfs, and creates the /sys/class/pwm/pwmchip0/pwm0/ subdirectory.What does the 'echo 0 > /sys/class/pwm/pwmchip0/export' do?
Echo 1 and you'd get the other pwm channel.
You may also find "cat /sys/kernel/debug/pwm" useful as it dumps the state of all PWM devices on the system.
Statistics: Posted by 6by9 — Thu Feb 29, 2024 10:37 pm