Use new type percent_t for duty cycle variable in pwm
authorLokesh B V <lokesh.bv@partner.samsung.com>
Fri, 22 Sep 2017 11:50:23 +0000 (17:20 +0530)
committerLokesh B V <lokesh.bv@partner.samsung.com>
Fri, 22 Sep 2017 11:54:56 +0000 (17:24 +0530)
commit5c6d3dca05b66cafd360524aaa7ef86b93dd821b
treed50378e8b1e45336d3bfe336f488d22ccf45ac0a
parentb4715287ed41a6d75b22c282db3100d0ed57a1ee
Use new type percent_t for duty cycle variable in pwm

percent_t is typedef of uint8_t.
Duty cycle is measured in terms of percentage, so it's value will be
in range from 0 t0 100 and uint8_t is enough to hold percentage values.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
framework/include/iotbus/iotbus_pwm.h
framework/src/iotbus/iotbus_pwm.c