Re: [PATCH] pwm: lpc32xx - Fix the PWM polarity

From: Alban Bedel
Date: Tue Nov 06 2012 - 12:19:30 EST


On Tue, 6 Nov 2012 07:47:22 -0200
Alexandre Pereira da Silva <aletes.xgr@xxxxxxxxx> wrote:

> Can you test the 0 and 255 values on actual hardware and see the effective
> values?

0 -> 0%
1 -> 99%
128 -> 50%
255 -> 1%

So yes 0 mean 256.

> It may be handled as the RELOADV where 0 really means 256. If so, you can
> use the same logic I used originally on the frequency division.

I'll look at this and submit a new patch.

Alban
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/