From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Scharsig Date: Fri, 03 Nov 2006 10:40:49 +0100 Subject: [U-Boot-Users] Resulution of udelay and co In-Reply-To: <20061103082030.00B0C352658@atlas.denx.de> References: <20061103082030.00B0C352658@atlas.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk schrieb: > In message you wrote: >> I am a little bit confused about udelay(unsigned long usec), >> get_timer(ulong base) and wait_ticks (unsigned long ticks). >> >> Witch resolution should have this functions? > > unsigned long usec = microseconds. > > unsigned long ticks = ticks. > > With the recommended setting of CFG_HZ=1000 a tick is a millisecond. > > Best regards, > > Wolfgang Denk > Thanks I will correct the timer functions for my target cpu to be really CLK dependently. Jens