> Make sure you used rtl_pthread_attr_setfp when you created the thread. > Victor Yodaiken
Must the FIFO-handler be a thread ? I have made it just like you make an ordinary interrupt service routine (normal kernel function). Is that wrong ? By the way when i print the same float as hexadecimal number (option %x) in both the user-space program and in the kernel-space, they are different, but if i cast it to unsigned int then they seem to be identical. Can you give a good explanation for that ? Thanks in advance Michael > On Mon, Apr 08, 2002 at 12:41:09PM +0000, Michael Bøllingtoft Nielsen wrote: > > Hi, > > > > I am having problems in sending floats to my realtime program via the > > RTfifo. The other way around seems to work fine. > > When i in the fifo-handler tries to compare the float i received from the > > fifo with the float-constant that i send to the fifo (from user-space) i can > > see that they are no equal. > > > > little code example: > > (in the fifo-handler) > > float rec; > > rtf_get(FIFO_NR,&rec,4) > > if(rec!=10.81) rtl_printf("not equal"); > > > > only when the float i am sending is like 10.0, 342.0, 934.0 they are equal, > > else not. > > > > Is there something that i am missing to set (like you have to tell the > > rt-thread when it is supposed to use the floating point unit) or is it not > > possible to receive floats in rt-space via RTFIFOs ?? > > > > thanks in advance > > Michael -- [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/