[C.CC USERS] occam port
Adam Sampson
ats at offog.org
Sat Aug 16 23:58:06 BST 2014
"sergiodesordi at libero.it" <sergiodesordi at libero.it> writes:
> PORT OF BYTE portd :
> PLACE portd AT #002B : -- addrress of PORTD ATMEGA
...
> Warning-occ21-G:\Transterpreter\arduino\plumbing-book\port.occ(19)-
> PORT dird must be PLACED
It's been a very long time since I've touched this code, but I have a
vague memory that using a separate PLACE directive doesn't work.
Try doing:
PLACED PORT BYTE portd #002B:
rather than the two separate lines?
occam/examples/ledmatrix.occ has some example code that drives the ports
directly -- like the library code, it places an array over all the
ports:
PLACED [MAX.PORT]BYTE ports 0:
SEQ
ports[PORTC] := #FF
...
--
Adam Sampson <ats at offog.org> <http://offog.org/>
More information about the users
mailing list