Re: [beagleboard] Re: How to read PWM in BBB GPIO....?

2016-03-30 Thread TJF
Am Mittwoch, 30. März 2016 17:34:58 UTC+2 schrieb Alex: > > So to do that we need to put the Pin PR1_ECAP0_ECAP_CAPIN_APWM_O > in input mode. > > Where can we find the source code of the libpruio doing that in the pru ? > libpruio doesn't use PR1_ECAP0_ECAP_CAPIN_APWM_O pin configuration. Inste

Re: [beagleboard] Re: How to read PWM in BBB GPIO....?

2016-03-30 Thread Micka
So to do that we need to put the Pin PR1_ECAP0_ECAP_CAPIN_APWM_O in input mode. Where can we find the source code of the libpruio doing that in the pru ? Le mer. 30 mars 2016 à 17:09, TJF a écrit : > You don't need GPIOs. Instead analyse the pulse train by hardware. The > eCAP modules in the PW

[beagleboard] Re: How to read PWM in BBB GPIO....?

2016-03-30 Thread TJF
You don't need GPIOs. Instead analyse the pulse train by hardware. The eCAP modules in the PWMSS subsystems are designed for that purpose. The simplest (and most powerful) solution is to use libpruio . Check out the example pwm_cap