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

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



On Tue, Jun 09, 1998 at 09:44:00AM +0700, Adolf Ahmad MS wrote:
> 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
> 


You create a rt-fifo with minor number 0 (myfifo)

   rtf_create(0, ...)

but write to rt-fifo with number 1

   rtf_put(1, ...)

I don't know much about pc hardware. So I can't say if your
code will work after correcting the fifo numbers.

Kai

-- 
 Kai P. Mueller
 Control Department (Regelungstechnik) | Phone [+49] (531) 391-3835
 Technical University Braunschweig     | Fax   [+49] (531) 391-5194
 D-38092 Braunschweig                  | Email mueller@ifr.ing.tu-bs.de
--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/