[jhc] [BUG] Poke should use volatile.
Kiwamu Okabe
kiwamu at gmail.com
Wed Mar 6 15:05:40 CET 2013
Hi John.
On Wed, Mar 6, 2013 at 10:06 PM, John Meacham <john at repetae.net> wrote:
> What do you mean by raw memory? I don't think the volatile should be
> needed in general for C allocated variables, but perhaps you are
> writing to hardware registers?
Yes. I would like to write to hardware registers.
https://github.com/ajhc/demo-cortex-m3/blob/master/stbee-mini/hs_src/Main_simple_led.hs#L18
We can do real programming with pure Haskell code,
if poke function is used.
Best regards,
--
Kiwamu Okabe
More information about the jhc
mailing list