comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Problem with task component
Date: Wed, 19 Sep 2012 22:48:28 +0100
Date: 2012-09-19T22:48:28+01:00	[thread overview]
Message-ID: <m262794rbn.fsf@pushface.org> (raw)
In-Reply-To: 187uk10m6z8xj.yr1cpbgrdur$.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> You need an open terminate-alternative ("or terminate;") when the
> object containing the task component is about to finalize.
>
> The usual problem is that the terminate-alternative does not live
> together with the delay-alternative and/or else-part, which makes it
> quite a challenge to implement something like a typical "driver"
> component task:

Indeed!

This particular application detects discrete I/O changes (switch
open/close) via an MCP23017 i/o multiplexer on a Raspberry Pi.

Using interrupts is in the next phase, for now I'm just polling by
reading the chip's registers so I must delay & can't use terminate. A
pain.



  reply	other threads:[~2012-09-21  1:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19 18:22 Problem with task component Simon Wright
2012-09-19 18:48 ` Dmitry A. Kazakov
2012-09-19 20:40   ` Simon Wright
2012-09-19 21:11     ` Dmitry A. Kazakov
2012-09-19 21:48       ` Simon Wright [this message]
2012-09-24  5:28         ` J-P. Rosen
2012-09-24  8:23           ` Simon Wright
2012-09-24 13:37             ` J-P. Rosen
2012-09-24 14:17               ` Simon Wright
2012-09-24 17:53               ` Robert A Duff
2012-09-24 20:40                 ` J-P. Rosen
2012-09-24 15:44             ` Adam Beneschan
2012-09-24 16:13               ` AdaMagica
2012-09-24 16:43                 ` Adam Beneschan
2012-09-24 16:29               ` Dmitry A. Kazakov
2012-09-24 20:49                 ` J-P. Rosen
2012-09-25  7:35                   ` Dmitry A. Kazakov
2012-09-25 17:52                     ` J-P. Rosen
2012-09-25 18:35                       ` Dmitry A. Kazakov
2012-09-25 19:22                         ` J-P. Rosen
2012-09-26  7:27                           ` Dmitry A. Kazakov
2012-09-26 11:49                             ` Georg Bauhaus
2012-09-26 14:13                               ` Dmitry A. Kazakov
2012-09-19 19:44 ` Adam Beneschan
replies disabled

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