public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Kallweit <simon.kallweit@intefo.ch>
To: Nick Garnett <nickg@ecoscentric.com>
Cc: ecos-patches@ecos.sourceware.org
Subject: Re: cortexm fix rtc
Date: Tue, 04 Nov 2008 18:53:00 -0000	[thread overview]
Message-ID: <491099E6.5000405@intefo.ch> (raw)
In-Reply-To: <m3d4hbbbbr.fsf@xl5.calivar.com>

Nick Garnett schrieb:
> "simon.kallweit@intefo.ch" <simon.kallweit@intefo.ch> writes:
>
>   
>> This patch fixes a small issue with the SysTick reload value (this has
>> to be period - 1) and fixed wrap-around in the hal_delay_us() function.
>>     
>
> The -1 on the period is OK.
>   

Fine.

> However, I don't see the point in the change to HAL_DELAY_US(). As far
> as I can tell it has exactly the same effect, or am I missing
> something?
>   

Do a series on paper, it's not the same. When the wrap around occures, 
you will add to the us counter. The 100ms delay on a redboot reboot 
never returned. With this fix, it actually takes 100ms :)

Simon

  reply	other threads:[~2008-11-04 18:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04 15:54 simon.kallweit
2008-11-04 18:23 ` Nick Garnett
2008-11-04 18:53   ` Simon Kallweit [this message]
2008-11-05 10:02     ` Nick Garnett

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=491099E6.5000405@intefo.ch \
    --to=simon.kallweit@intefo.ch \
    --cc=ecos-patches@ecos.sourceware.org \
    --cc=nickg@ecoscentric.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).