Am Sun, 28 Aug 2016 09:28:24 +
schrieb Timo Sintonen :
> I just translated my sample program and everything seems to work
> in my limited tests. Here is a simplified example of an uart:
>
> alias uarttype = uartreg*;
> enum uarttype uart1=cast (uarttype)0x40011000;
> enum uarttype uart2=cast
On Sunday, 28 August 2016 at 08:34:15 UTC, Johannes Pfau wrote:
Am Sat, 27 Aug 2016 08:05:08 +
schrieb Timo Sintonen :
The Volatile!T code you posted does not show how to map such a
Volatile!T instance to a certain address. The code in 2) could
be placed into a @property, but some stuff m
Am Sat, 27 Aug 2016 08:05:08 +
schrieb Timo Sintonen :
> [...]
> I did some simple tests and this seems to work.
>
> My question is: is this the way we should go?
Yes, I think this is the best way to implement a volatile type. It is a
natural replacement for volatile variables as it can be u