开发者

How to register a function in a driver code as its ISR

开发者 https://www.devze.com 2022-12-28 10:49 出处:网络
Following the feedback i got from my previous question on Linux Kernel development, I have written a driver (in Linux-kernel v2.6.32) by comparing it with an existing driver and \"borrowing\" heavily

Following the feedback i got from my previous question on Linux Kernel development,

I have written a driver (in Linux-kernel v2.6.32) by comparing it with an existing driver and "borrowing" heavily from its code. The driver is registered fine. The init() and probe() are working fine. I am also able to access the peripheral device registers. :开发者_如何转开发-)

However i am a bit hazy about the IRQ/ISR. The peripheral-device is a input device and raises an interrupt on a GPIO pin.

How do i move ahead from the current state to handle the IRQ and execute my ISR function ?


Did you look at the Linux Device Drivers book? It has a whole chapter on interrupt handling. It should provide the background information you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号