Home  >  Support  >  Support Forum  >  IOWRITE_ A & IOREAD_A Macros
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

IOWRITE_ A & IOREAD_A Macros

0 votes
We have to use the macros IOWRITE_A & IOREAD_A on Dynamic C 10.70 for RCM5700. For example the piece of code where we use these macros are on lib HDLC_PACKET.LIB

#asm xmem

HDLCcloseE::
ipset HDLC_INT_LEVEL
;clear out interrupt vector
ld a,0xc9 ; ret in first byte
ld (INTVEC_BASE+SERE_OFS),a
ld a,0x00 ; disable interrupts for port
ld (SECRShadow),a
IOWRITE_A(SECR)
ipres
lret

#endasm


but when we compile, can see the next error

Unexpected token in label: "IOWRITE_A >>> ( <<< 0xCC)", excepted one of {':'}

Thanks for your support

BR
Jose Luis
asked Jun 20 in Rabbit Software by jlrubio New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
HDLC_PACKET.LIB is slightly different in Dynamic C 10.72, I suggest you download our current release and let us know if you see any errors.
answered Jun 20 by MargaretK Veteran of the Digi Community (492 points)
Contact a Digi expert and get started today! CONTACT US
...