[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] Cannot get data from FIFO on RT-Linux



Just a couple of suggestions:

1.) M8255.c
        - move #define myfifo 0 & #define size 8192 somewhere outside of
           the function  (this will make it global to all functions within
this code)
           place just under your #include statements
        - change the word size to something more meaningful like fifo_size
        - change rtf_put ( 1, ... ); to rtf_put ( my_fifo, ...); once you
move the #define statement


See if that helps.  I myself am trying to learn how to use RT-Linux with
irq's.  I have gotten data to go from rtl -> linux -> rtl using the
scheduler but not having to much luck with interrupts.

Good Luck...

Donald Radke


-----Original Message-----
From: Adolf Ahmad MS <adolf@ratelindo.co.id>
To: 'rtl@rtlinux.cs.nmt.edu' <rtl@rtlinux.cs.nmt.edu>
Date: June 9, 1998 12:28 AM
Subject: [rtl] Cannot get data from FIFO on RT-Linux


>Dear All,
>
>I have a problem as below,
>* I want to Collect data stream with 40 kByte/s ( 40,000 sample/s)
>from 8-bit Paralel Port, and I connect to 8255 PPI card on my PC, Base
>addr 0x300, IRQ5.
>* I try to use RT-Linux for this, see attachement.
>* After I do 'insmod  M8255.o' and mkdnod /dev/rtf0, i run
>'Get_data'.
>* But, I have never received data from the fifo.
>
>Is my program is right or wrong ? May be I forgot something.
>
>Thank you for your Kind attention.
>
>Sincerely Yours,
>
>
><adolf@ratelindo.co.id>
>OMC Switching Div
>Wisma Bakrie Lt. 5,
>Jl. HR. Rasuna Said Kav B1
>Jakarta
>Telp. 9101112 ext. 411
>
>

--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/