[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Problem when building application
Eli Zarka wrote:
> hello.elf2flt: In function `SlaveReadWrite':
> /cygdrive/c/akivas/ucLinux/application/hello.c(.text+0x374): undefined
> to `request_irq'
request_irq() is a kernel function, and may not be called by user
applications. Only device drivers may register interrupt handlers.
You will need at least a simple device driver to capture the IRQ,
implementing either (or both) read() or poll() file operations.
Then, your application would open the device, and perform a blocking
read(), or poll() on that device.
Check out the Linux Device Drivers book (2nd edition) by Corbet and
Rubini - the PDF is available for free online.
microblaze-uclinux mailing list
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/