ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Where can I find peekpoke?

To:
Subject: Re: [ts-7000] Re: Where can I find peekpoke?
From: "Michael Schmidt" <>
Date: Thu, 3 Jan 2008 10:45:14 -0700 (MST)
On Thu, January 3, 2008 8:49 am, naturalwatt wrote:
> --- In  Eddie Dawydiuk <> wrote:
>>
>> Hello,
>>
>> > I want to use the scripts to read/write the DIO lines from the shell,
>> > but the subroutines use peekpoke, and I cannot seem to find it.
>> >
>> > I have 7260, with the Debian dev kit, but it does not seem to be on
>> > the machine, and I cannot find it on the web site
>>
>> Busybox was modified to add the peekpoke routine, you can find the
>> source code here ftp://oz.embeddedarm.com/tmp/busybox-7400.tar.gz.
>>
>> e.g.
>>      coreutils/peekpoke.c
>>
>> Keep in mind Debian doesn't use busybox...
>>
>> //Eddie
>>
>
> Is this not available for 7250 users?  Or should I write a standalone
> peekpoke?
>

The direct source for peekpoke is here:
ftp://oz.embeddedarm.com/tmp/peekpoke.c

peekpoke was developed around the time of the 7400, so it doesn't come
with the 7250.  You can however compile the above source for the 7250. 
The history of peekpoke is that I essentially took some existing utilities
(peek8,peek16,peek32,poke8,poke16,poke32), combined them all into a single
program, expanded the range of values you can use as arguments (the
originals only accepted hex) and added some error checking.  Then peekpoke
was modified to go into busybox after that.

The only real downside to peekpoke is that it always reads back after a
write, which in a few rare cases (e.g. write a TS-UART data register) is
not what you want.  But you can easily fix that if it bothers you. :-)

> Martin

 ______   Best Regards,
|__  __/                  Michael Schmidt
   ||                   Software Engineer
   ||echnologic Systems (EmbeddedARM.com)
   || (480)    16610 East Laser Drive #10
   |/ 837-5200   Fountain Hills, AZ 85268
       http://oz.embeddedarm.com/~michael



 
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