commit | c97267ae831da2711e9592398d490dbd1f4d5ddd | [log] [tgz] |
---|---|---|
author | Lee Jones <lee.jones@linaro.org> | Tue Aug 16 10:35:05 2016 +0100 |
committer | Thierry Reding <thierry.reding@gmail.com> | Thu Sep 08 10:55:11 2016 +0200 |
tree | 1e070d4104d060eab3751dc1cd3413e8b382925b | |
parent | 25eb53809674a875c64da7f6e1ab9695684e431a [diff] |
pwm: sti: Add PWM capture callback Once a PWM capture has been initiated, the capture call enables a rising edge detection interrupt, then waits. Once each of the 3 phase changes have been recorded the thread then wakes. The remaining part of the call carries out the relevant calculations and returns a structure filled out with the capture data. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>