ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Reading GPIO ports

To:
Subject: Re: [ts-7000] Re: Reading GPIO ports
From: Matt Godbolt <>
Date: Wed, 19 Jul 2006 10:03:03 +0100

tate = *PBDR;
> while (!(state & 0x01)) {
> state = *PBDR;
> }
>
> printf("boo\n");
> }
>

Your delay is unlikely the pins. It's more likely to be the IO.
You might want to try to flush the io buffer after each printf:
"fflush(stdout);"
















Hi there, I tried all manner of IO flushing, ioctl()s, etc (including flashing the LEDs on the circuit board) and none of that helped - even without flushing it wouldn't have missed some of the edges as my experiments suggested, it would have just bunched them up until the printfs() got flushed. 

I'm still not sure what was going on,  but writing kernel-level drivers has obviated the issue.  In fact, if anyone is interested in either a /dev/lcd driver (a patch to lcdmod), or a driver to act on interrupts on a DIO pin from an infra-red detector (I have a driver to lirc), let me know.

Thanks to those who helped - one day I will revisit this user-mode issue and try and work out what it was, but until then I'm happy in kernel-space.

Thanks,

Matt
__._,_.___


SPONSORED LINKS
Linux os Hardware Arms
Computer internet Computer security Computer hardware security


YAHOO! GROUPS LINKS

  •  Visit your group "ts-7000" on the web.
     
  •  To unsubscribe from this group, send an email to:
     =Unsubscribe
     
  •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



__,_._,___
<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