[C.CC USERS] placed variables?
Patrick J.G.C. Weemeeuw
pweemeeuw at telenet.be
Mon Aug 9 16:20:28 BST 2010
Hi,
After playing a bit with occam on my arduino -- I like it very much -- I want to keep track of time for my measurements.
I thought about something along the following lines:
-----------------------------------------
#INCLUDE "plumbing.module"
VAL INT clockresolution IS #03E8: -- one tick every 1000 ms
PROC timekeeper ()
PLACED INT64 now: -- which address?
TIMER tim:
INT t:
SEQ
WHILE TRUE
SEQ
tim ? t
-- maintain 'now' here, based on t and t's previous value
serial.write.string(TX0, "time: ")
serial.write.int(TX0, now)
serial.write.newline(TX0)
delay(clockresolution)
:
PROC main ()
PAR
heartbeat()
timekeeper()
:
-------------------------------------------
I have 2 questions:
- are placed variables supported in concurrency/plumbing (I'm still confusing the names)?
- what address should I use in the variable declaration?
Thanks
-- Patrick
More information about the users
mailing list