2009-12-09 15:00:14 GPIO Interrupt
Steven Sheppard (UNITED STATES)
Message: 83310
Now, I've read through some of the interrupt stuff, but I'm very new to this sort of thing.
I have a program running on bf537 uClinux, and I want it to handle an interrupt generated when a sensor triggers one of the gpio. Do I need to do something special to the gpio driver to make this happen, or can I set this up from my program?
Am I misunderstanding how this is supposed to work?
Any help or reccommended reading would be greatly appreciated. Thanks for your time.
QuoteReplyEditDelete
2009-12-09 15:31:07 Re: GPIO Interrupt
Mike Frysinger (UNITED STATES)
Message: 83311
you dont say exactly what "handle" means. if you merely want your user space application to be able to handle it, then use UIO.
if you need to write kernel code, then review the interrupts documentation:
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:interrupts
QuoteReplyEditDelete
2009-12-09 15:43:37 Re: GPIO Interrupt
Steven Sheppard (UNITED STATES)
Message: 83314
I'm just reading about UIO and I think this is exactly what I'm looking for. Could you offer any insight into how I'd set this up for a specific GPIO? Is there an example of this somewhere, or of something like it?
QuoteReplyEditDelete
2009-12-09 16:00:54 Re: GPIO Interrupt
Mike Frysinger (UNITED STATES)
Message: 83315
GPIO interrupts arent any different from normal interrupts. just use the appropriate interrupt define.
QuoteReplyEditDelete
2009-12-09 16:09:28 Re: GPIO Interrupt
Steven Sheppard (UNITED STATES)
Message: 83316
Is there an example of that somewhere?
QuoteReplyEditDelete
2009-12-09 16:34:33 Re: GPIO Interrupt
Mike Frysinger (UNITED STATES)
Message: 83319
i wrote an UIO example, but i guess i deleted as i cant seem to find it. so you'll have to refer to the common UIO documentation (not that doing it on a Blackfin system is any different).