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/
|