Update comments for duty element in struct pwm_info_s
authorLokesh B V <lokesh.bv@partner.samsung.com>
Fri, 22 Sep 2017 11:22:24 +0000 (16:52 +0530)
committerLokesh B V <lokesh.bv@partner.samsung.com>
Fri, 22 Sep 2017 11:54:55 +0000 (17:24 +0530)
commitb4715287ed41a6d75b22c282db3100d0ed57a1ee
tree960e7fe6a6eb51f8e9ede2ce85c9c44e34acf856
parentbb661e00877dd33fe0abec5ab501b2ecb8296cea
Update comments for duty element in struct pwm_info_s

In PWM, 1 is always high and 0 is always low.
If we set a duty cycle to 100%, PWM should be 1 always.
If we set a duty cycle to 50%, PWM should be half 1 and half 0.
If we set a duty cycle to 0%, PWM should be 0 always.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
os/include/tinyara/pwm.h