Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: Ilko Iliev <iliev@caretec.at>
Cc: gdb@sources.redhat.com, Richard.Earnshaw@arm.com
Subject: Re: gdbinit and PLL init
Date: Thu, 04 Apr 2002 07:36:00 -0000	[thread overview]
Message-ID: <200204041535.QAA07509@cam-mail2.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Thu, 04 Apr 2002 17:30:18 +0200." <5.1.0.14.2.20020404172023.00aeede0@mbox>

> Hello!
> 
> I have custom board with ARM7 CPU with PLL and I use JEENI.
> 
> I want to init the PLL in .gdbinit, but this is complex.
> 
> How can I write the follow sequence in .gdbinit?
> 
> int *pp = 0xFFFF4020;
> int *qq = 0xFFFF4040;
> *pp = 0x1234;
> while(  *qq & 0x400 );		// or 200ms pause
> *pp = 0x5678;
> 
> 
> best regards
> Ilko
> 

Try

  set $pp = (int*)0xffff4020
  set $qq = (int*)0xffff4040  
  set *$pp = 0x1234
  while (*$qq & 0x0400)
  end
  set *$pp = 0x5678

R.


      reply	other threads:[~2002-04-04 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-04  7:29 Ilko Iliev
2002-04-04  7:36 ` Richard Earnshaw [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200204041535.QAA07509@cam-mail2.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gdb@sources.redhat.com \
    --cc=iliev@caretec.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox