This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[OMAP3530] IRQ

Other Parts Discussed in Thread: ADS1278, OMAP3530

Hello.

_______

I am connecting a Gumstix PALO43 (with OMAP3530 in it) to an ADS1278, via SPI.
_______________________________________________________________________

In the 3530 I am polling for GPIO146 tied to /DRDY, a data-ready line from 1278.
________________________________________________________________________________

When DRDY is low, I start SPI clock and MISO acquire.
______________________________________________________

Data can be seen on the MISO line, coming from 1278 into 3530.
______________________________________________________________


However too much time (4 us) elapses between /DRDY and clock and acquire.
__________________________________________________________________________

Data longer than 3 bytes (24 bytes or more on 8 channels) can thus be squashed by the next /DRDY.
__________________________________________________________________________________________________

It's faster to trigger clock and acquire through an interrupt.
________________________________________________________________

The TI document spruf98d.pdf in page 3457 writes how to make a GPIO (here GPIO146) interrupt-enable.
____________________________________________________________________________________________________

When I write an interrupt function, what declaration ties the awakening of this interrupt function
_________________________________________________________________________________________

to the interrupt-enabled GPIO146?
___________________________________

In other words, what should I do to write an interrupt function tied to GPIO146?
__________________________________________________________________________________


Ion A. Beza.
______________

  • I should mention the Operating System is Angstrom linux-omap3-2.6.32-r51 found on this Gumstix site:

    ________________________________________________________________________________

    http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/111.html

     

    The controller driver there is omap2_mcspi.c, which comes through download from the Gumstix site when compiling linux-omap3-2.6.32-r51 

    _____________________________________________________________________________________________________________

    and it should work (unless patches are needed for fixing it).

    _____________________________________________

    The polling of the /DRDY to replace by an interrupt happens in the protocol driver I am working on.

    _____________________________________________________________________________

     

    Ion A. Beza.

    ___________

  • Bumping up the thread with this question.

    ________________________________

     

    Ion A. Beza.

    ____________