For a project I’m using the Aplis iMX6Q embedded platform. I have my basic stuff already running like GPIO and SPI. But now I want to add and Timer interrupt.
For this interrupt I’m going to use the EPIT1 timer (according to my research it should be free to use, otherwise EPIT2 would be fine). After a specific time, that I write to the registers, it should generate a interrupt. I have already read into this EPIT timer and I’m sure I can manage to get it working. However the interrupt handler is a problem. I have tried to find an answer but it didn’t suit my expectation.
I’m very familiar with interrupts and handlers, only for a microprocessor. In this case I just enable the bit that causes the interrupt. When the interrupt is fired, it goes directly to an general ISR in which the correct source is allocated or just directly to the correct function. This is actually what I’m looking for to use in the Linux environment.
Can someone help me in the general good direction. An example would be appreciated.