ts-7000
[Top] [All Lists]

Re: [ts-7000] Interrupt generation at user level(In user application)

To:
Subject: Re: [ts-7000] Interrupt generation at user level(In user application)
From: Jim Jackson <>
Date: Fri, 2 May 2008 22:28:27 +0100 (BST)


On Fri, 2 May 2008, manmohan_thakur119 wrote:

> Dear all,
> I am using TS-7250,kernel version-2.4.26.
> I am facing a problem regarding ISR handling through DIDO port for
> user level application.

Oh dear.

check out  http://www.linux.com/feature/114206

I googled for : linux IRQ in userspace

The kernel handles IRQs. You will need to write a kernel handler/module to 
do some of the work and interface your userland program to that.


> For ISR registering we are using request_irq() for irq no. 59
> (GPIOINTR) but it is giving no. of errors and undefined reference
> during compilation through cross compiler (crosstool-cygwin-gcc-
> 3.3.4-glibc-2.3.2.tar.bz2) after inclusion of kernel level header
> files.
> #include <linux/unistd.h>
> #include <linux/ioport.h>
> #include <linux/interrupt.h>
> #include <linux/sched.h>
> #include <asm/system.h>
> #include <asm/io.h>
> #include <asm/irq.h>
>
> Errors are-
>
> $ ./arm-unknown-linux-gnu-gcc -o newSerial newSerial.c
> /cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x188):
> In function
> `sioEnd':
> : undefined reference to `free_irq'
> /cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x31c):
> In function
> `sioEnable':
> : undefined reference to `save_flags'
> /cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x320):
> In function
> `sioEnable':
> : undefined reference to `cli'
> /cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x33c):
> In function
> `sioEnable':
> : undefined reference to `request_irq'
> /cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x358):
> In function
> `sioEnable':
> : undefined reference to `restore_flags'
> /cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x3f8):
> In function
> `sioEnable':
> : undefined reference to `printk'
> /cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x400):
> In function
> `sioEnable':
> : undefined reference to `restore_flags'
> collect2: ld returned 1 exit status
>
> Can anybody provide a right soution for this?
> whether we can use request_irq()routine at user level or not,if not
> then what are the other solution for interrupt handling at user
> level application.
>
>

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU