--- In "Candelabra Funky Wild Lips Willy"
<> wrote:
>
> The TS-7800 has two hardware timers that generate interrupts. I have
a
> driver I wrote that starts the second timer, and enables interrupts
on
> it. I need to send out a GPIO signal around 10,000 times a second
> without fail, and cannot do it from user mode or using the timer
used
> in the linux kernel. Hence the driver.
>
> The problem is that both the timers trigger the same IRQ (IRQ_BRIDGE
in
> the kernel code), and I want the second timer to call my interrupt
> routine in my driver.
>
> Any ideas? Can I chain the IRQ somewhow? I'd prefer not to modify
the
> kernel since recompiling it and reinstalling it is a pain.
>
> Thanks in advance for any help on this.
>
Not sure what your implementation is but 10kHz is pretty high. Can't
you set up your other function to run at a multiple of that (K x
.1ms). Every time you enter your 10kHz IRQ, you increment a variable
i then execute the second function when i = K and reset i. You would
only be using 1 timer...
I am just starting to play with the Marvell timers. I understand from
the group discussion there is no good (accurate) way to implement
timer interrupts from user space... Can I ask how you set up the timer
and the IRQ on your driver?
------------------------------------
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/
|