[C.CC USERS] occam port
sergiodesordi at libero.it
sergiodesordi at libero.it
Sat Aug 16 17:54:28 BST 2014
With this occam program for arduino
#INCLUDE "plumbing.module"
#INCLUDE "twi2.module"
PROC porta()
PORT OF BYTE portd :
PLACE portd AT #002B : -- addrress of PORTD ATMEGA
PORT OF BYTE dird :
PLACE dird AT #002A : -- address of DDRD
SEQ
dird ! 255 -- all bit in output
WHILE TRUE
SEQ
portd ! 255
delay(1000)
portd ! 0
delay(1000)
:
Compiling: G:\Transterpreter\arduino\plumbing-book\port.occ
Warning-occ21-G:\Transterpreter\arduino\plumbing-book\port.occ(19)- PORT dird must be PLACED
Warning-occ21-G:\Transterpreter\arduino\plumbing-book\port.occ(17)- PORT portd must be PLACED
Warning-occ21-twi2.module(266)- parameter `bs' might be undefined here
compile completed sucessfully
I do not understand the Warning. The program does not work with Arduino.
Maybe the port are not supported? Thank you very much for an answer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/users/attachments/20140816/d2e2dec0/attachment.html>
More information about the users
mailing list