ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Delay of up to half sec on TS-DIO64 inputs

To:
Subject: Re: [ts-7000] Re: Delay of up to half sec on TS-DIO64 inputs
From: Jim Jackson <>
Date: Fri, 1 Aug 2008 22:06:42 +0100 (BST)


On Fri, 1 Aug 2008, akacairo wrote:

> Hi, thanks ... but the delay is still there.
>
> - the pointers are volatile.
>
> - he O_SYNC option was not set, but even with this option there is
> still that delay...
>
> It looks like (My code is based on the button.c example, btw.)
>
> int fd = open("/dev/mem", O_RDWR, O_SYNC);

The O_RDWR and O_SYNC are option flags and must be combined (ORed)
into one option word. You have given the O_SYNC option as the 3rd parameter 
for open function call - which is for the mode.

Try this

  int fd = open("/dev/mem", O_RDWR | O_SYNC);

There is a world of a difference between a ',' and a '|'.

I would be very surprized if the button.c code used the open in the way you 
quote!

>
>
>
> Any ideas?
>
>

------------------------------------

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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU