Dear all,
I have a problem with interrupt handling on am335x .
The environment is:
- kernell: builded from the TI sdk
- rootfs: customized ubuntu
We have to connect some spi devices to the spi1 bus. The am335x is the master so the slave ask for attention trough an interrupt pin and.. we need to detect that interrupt at least each millisecond.
So the spi device lower a pin, the am335x must detect the falling edge and answer in less than half millisecond.
I used the "poll" function for that pin (in a forked thread) but is very lazy, so I adopted the solution to manually poll the memory register DATA_IN of the right gpio-bank (always in a separated thread) and it is quite faster.. but not fast enough.
What is the best way to listen for incoming interrupt? It is correct to do this at user space?
After the detection of that interrupt I have to start an SPI communication.
Any advice would be very appreciated.
Regards
Giuseppe