AnsweredAssumed Answered

Epit interrupt on i.MX6

Question asked by Luca Noga on Apr 7, 2015
Latest reply on Apr 8, 2015 by Luca Noga

Hi all,

I'm developing in Linux on a custom board with i.MX6S.

Based on the i.MX6 Linux RM, I found the reference code for the Epit module at arch/arm/mach-imx/epit.c.

 

First question:

What does the __init keyword in front of epit_timer_init function? Is this function called at the kernel boot up, so I don't have to call it again within my code? Or do I have still to call it in my code?

 

Second question:

What I'm really trying to do is to take an action (e.g. change the value of a GPIO pin) once the Epit interrupt occurs, let's say every 25 ms. Is the function to modify the epit_timer_interrupt? How should i modify clockevent_epit to achieve my aim?

 

Thanks and best regards,

Luca

Outcomes