comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Representation clauses and side-efects on STM32F411 ravenscar runtime
Date: Sun, 02 Aug 2015 16:19:33 +0100
Date: 2015-08-02T16:19:33+01:00	[thread overview]
Message-ID: <ly1tflpvju.fsf@pushface.org> (raw)
In-Reply-To: 55be2e9e$0$3318$426a74cc@news.free.fr

Frédéric Praca <frederic.praca@free.fr> writes:

> Yes, I've done this later in the code defining the whole register :
> USART1 : USART_Registers with Volatile,
>      Address => System'To_Address (USART1_Base);

I wrote a script[1] to convert the output of -fdump-ada-spec on
stm32f429xx.h into something more useful, and I made the record
definitions Volatile rather than the object declarations. I can't now
remember why .. ah, the log says that -fdump-ada-spec didn't handle the
case where record components were marked volatile (_IO) in the C source,
so defining the whole record as Volatile was the next step.

[1] https://sourceforge.net/p/stm32f4-gnat-rts/code/ci/default/tree/stm32f429i-disco-bsp/transform.sed


  reply	other threads:[~2015-08-02 15:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-02  8:59 Representation clauses and side-efects on STM32F411 ravenscar runtime Frédéric Praca
2015-08-02  9:40 ` Simon Wright
2015-08-02 10:22   ` Simon Wright
2015-08-02 14:53     ` Frédéric Praca
2015-08-02 14:52   ` Frédéric Praca
2015-08-02 15:19     ` Simon Wright [this message]
2015-08-02 19:23 ` Jeffrey R. Carter
2015-08-02 19:54   ` Bob Duff
2015-08-02 20:01     ` Frédéric Praca
2015-08-02 20:13       ` Bob Duff
2015-08-02 20:27         ` Frédéric Praca
2015-08-02 20:31     ` Jeffrey R. Carter
2015-08-03 11:08 ` Simon Clubley
2015-08-15 14:22   ` Frédéric Praca
2015-08-15 15:33     ` Simon Clubley
2015-08-15 17:17       ` Frédéric Praca
replies disabled

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