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