From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Periodic task
Date: Wed, 26 Aug 2015 06:45:35 +0200 [thread overview]
Message-ID: <55DD446F.8010808@denx.de> (raw)
In-Reply-To: <CAJ2oMh+6SMFvDV4NciARAp0TmfLf6rLNCiZGMbcEzS7vAkACUA@mail.gmail.com>
Hello Ran,
Am 25.08.2015 um 22:03 schrieb Ran Shalit:
> Hello,
>
> I need to do some periodic very simple task during u-boot prompt
> (while u-boot wais for commands). The task is very simple, just
> writing into a watchdog refresh register.
> But it seems that it's very difficult to "hack" u-boot with such periodic task.
> I see that main loop is waiting in loop for characters in a call to
> getc, which is a blocking command. If it was non-blocking, it might
> have help me. I'm not sure if there is a way to replace the getc with
> a non-blocking call.
>
> Does anyone have any idea if there is some simple way to do periodic
> task in u-boot ?
As you want to trigger a watchdog, have a look at
u-boot:/drivers/watchdog
and grep the U-Boot code for
CONFIG_WATCHDOG
CONFIG_HW_WATCHDOG
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2015-08-26 4:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 20:03 [U-Boot] Periodic task Ran Shalit
2015-08-26 4:45 ` Heiko Schocher [this message]
2015-08-26 6:09 ` Ran Shalit
2015-08-26 7:05 ` Heiko Schocher
2015-08-26 8:57 ` Ran Shalit
2015-08-26 9:29 ` Heiko Schocher
2015-08-26 9:45 ` Ran Shalit
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=55DD446F.8010808@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.