Re: [crisos] GPIO and Interrupt |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/crisos Archives
]
- To: crisos@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [crisos] GPIO and Interrupt
- From: Claudio <claudyus84@xxxxxxxxx>
- Date: Tue, 9 Sep 2008 08:42:07 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JJy/z1oQzwJwyxJqGLIIwECyvtbXTSlbIWN32hUyUNw=; b=OPEl4j0opT9s70xuIqhBSFtBHfSJ+NEhhIvjk0Uq0EwHBBD9lfg2NX9lMJSA0/7go2 +vQ/WqmfCWfOG/NLrqvXrftQID5Ag4p7GIjxWs5gr52mjagRTlJuEMwCJKSeshYUeI35 /vfLDBR642/1JmvnPU30QN5zufmJR5VnExbns=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bn8bFIbn2W1srCK/IXZQVlmkwDoquOy8hi7AJGtPMpOfDh4/K0jHkdJZ6Y8fBGzDM5 7iq6/+ad7Q+rR0VXbNMHixDVJ0RHgiTcmILgR0Q6/Aiy676Czbz1C5FMN6WL56/Fgh6I ij5oqSqHSiKCjRARyu2q+a6MDP1G0pJ83WERY=
Hi Mike
2008/9/8 Mike Lawson <crisos@xxxxxxxxx>:
> Hi all,
>
> I use the Foxboard (FoxGM) with the alpha firmware for a project at school.
> Is
> there a possibility to monitor the button press (or any GPIO ports/pins
> configured as digital input) without polling it?
your question is really an interest one.
Looking inside foxbone syscall
(http://svnweb.tuxfamily.org/filedetails.php?repname=crisos/svn&path=%2Ftrunk%2Ftarget%2Flinux%2Fetrax%2Fpatches-2.6.19%2F500-foxbone_syscall.patch&rev=57&sc=0)
there are some interrupt related stuff, investigate into it a bit you
can see a call to request_irq documented here:
http://www.silicontao.com/ProgrammingGuide/GNU_function_list/request_irq.html
Should be pretty to see some example code who use IRQ on foxboard!
Please let us know your experience
>
> At the moment I do the following
>
CUT
>
> Any better solution is highly appreciated!
> Thanks a lot and best regards,
>
> Mike
>
--
Claudio
User linux #415284
http://www.crisos.org/ - Cris linux distribution
---
CrisOs mailing list
Official multi-language http://www.crisos.org/ mailing list
For unsubscribe send empty mail to: crisos-request@xxxxxxxxxxxxxxxxxxx with subject unsubscribe.