From: Shark8 <onewingedshark@gmail.com>
Subject: Re: SPARK 2014 and protected objects
Date: Thu, 1 Sep 2016 13:07:33 -0700 (PDT)
Date: 2016-09-01T13:07:33-07:00 [thread overview]
Message-ID: <ff262b9f-a0d4-41c6-aec9-31bab4667de6@googlegroups.com> (raw)
In-Reply-To: <lyzinshd4i.fsf@pushface.org>
On Wednesday, August 31, 2016 at 2:55:42 PM UTC-6, Simon Wright wrote:
> Shark8 writes:
>
> >> I had Protected_Value outside the PO because it's standing in for a
> >> number of I/O registers communicating with devices on a shared SPI
> >> bus via their /Chip Select lines. Not sure how to deal with the
> >> concept of "a number of machine registers"!
> >
> > Well, if they're memory-mapped registers you could use something like:
> > Regester_A : Word with Address => Location;
>
> I meant rather how I was to get SPARK to handle them. I suppose one
> could detail each individual register or even bit field, but as far as I
> can see most folk just turn SPARK_Mode off.
Well, Randy just pointed out that specifying the address was/is meant for registers -- https://groups.google.com/forum/#!topic/comp.lang.ada/gPJh0r2XxcA -- so I guess it just depends on how far you want to use SPARK on them.
prev parent reply other threads:[~2016-09-01 20:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 10:34 SPARK 2014 and protected objects Simon Wright
2016-08-30 14:45 ` Shark8
2016-08-30 15:33 ` Simon Wright
2016-08-30 18:42 ` Simon Wright
2016-08-30 18:47 ` Simon Wright
2016-08-31 0:11 ` Shark8
2016-08-31 7:42 ` Simon Wright
2016-08-31 15:41 ` Shark8
2016-08-31 20:55 ` Simon Wright
2016-09-01 20:07 ` Shark8 [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox