Hi Victor,

> On Sun, Jul 15, 2001 at 04:53:48AM -0700, Greg Ercolano wrote:
> >       /usr/rtlinux-3.0/examples/v1api/parallel/rtc_toggle.c
> >       /usr/rtlinux-3.0/examples/v1api/parallel/rtc_toggle_fifo.c
> > 
> > We found their interrupts only went off once, then stopped.
> > 
> > To make the examples work, just add the rtl_hard_enable_irq(8)
> > call above the 'break' statement for 'case 0' in handler(), eg:
>
> did you set CONFIG_V1API ?

        ..hmm? That looks like a kernel config option.

        I should clarify; I recently installed the RTLinux 3.0 CD
        on my machine, so I'm using the default installation which 
        I assume has the kernel pre-configured already.

        I did a default make in /usr/rtlinux-3.0/examples/v1api/parallel
        then 'rtlinux start rtc_toggle'; shouldn't the default work?

        FWIW I tried that as a compile option to the example, but
        it didn't help. (Since it's not in the sources, not sure how
        it could)

        Puzzled, I searched the machine for the "CONFIG_V1API" string,
        examples, kernel source and all.. there were no hits:

                find /usr -type f -exec grep -H CONFIG_V1API {} \;

        Sorry to ask again, but are you sure the correct thing isn't
        to have rtc_toggle*.c call rtl_hard_enable_irq(8) in handler()?

        Based on the docs for rtl_request_irq() it appears one should,
        and adding it certainly seems to 'fix' it.

        Sorry if I'm misunderstanding completely.. I thought I really
        researched this carefully, maybe not.

-- 

   \___/
   |o,o|
 \/    )
----mm---------------------------------------------------------------------
Greg Ercolano                    UNIX NightOwl / Systems Programmer & Admin
[EMAIL PROTECTED]                              http://3dsite.com/people/erco/
---------------------------------------------------------------------------

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to