public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Periodic task
@ 2015-08-25 20:03 Ran Shalit
  2015-08-26  4:45 ` Heiko Schocher
  0 siblings, 1 reply; 7+ messages in thread
From: Ran Shalit @ 2015-08-25 20:03 UTC (permalink / raw)
  To: u-boot

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  ?

Regards,

Ran

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-26  9:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 20:03 [U-Boot] Periodic task Ran Shalit
2015-08-26  4:45 ` Heiko Schocher
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox