Using PWM from sysfs
following Instuction only works for Linux kernel 3.11 or greater
Where to find PWM devices in sysfs
PWM devices are listed under /sys/class/pwm
Enable PWM device
root@MBaXXX:~ cd /sys/class/pwm // enter pwm folder in sysfs root@MBaXXX:/sys/class/pwm cd pwmchip<pwmchipnr> // enter the desired pwmchip folder root@MBaXXX:/sys/your/path/to/pwmchip/pwmchip<pwmchipnr> echo <pwmnr> > export // export device PWM<pwmnr> root@MBaXXX:/sys/your/path/to/pwmchip/pwmchip<pwmchipnr> cd pwm<pwmnr> // enter exported pwm device folder
Disclaimer
TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.
TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.