Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c2_hardware_pwm [2016/12/09 14:39] ck.kim [Examples of usage] |
en:c2_hardware_pwm [2017/01/31 19:10] (current) odroid [freq0] |
||
---|---|---|---|
Line 40: | Line 40: | ||
You can control this pwm via simple sysfs entries. | You can control this pwm via simple sysfs entries. | ||
- | On **/sys/devices/pwm-ctrl/** You'll find the following files: | + | On **/sys/devices/platform/pwm-ctrl/** You'll find the following files: |
==== duty0 ==== | ==== duty0 ==== | ||
Line 63: | Line 63: | ||
enable1, freq1, duty1 | enable1, freq1, duty1 | ||
</WRAP> | </WRAP> | ||
+ | |||
+ | ==== How to access the PWM port in C language ==== | ||
+ | |||
+ | [[http://forum.odroid.com/viewtopic.php?f=141&t=25563#p177696|Example code by paulcrawford ]] | ||
+ | |||
+ |