Jairo Berrio

Volatile issue

Discussion created by Jairo Berrio on Feb 6, 2008
Latest reply on Feb 7, 2008 by Jairo Berrio
I am trying to use the following documentation AN2616 and follow an example.  In the example they initialize the data direction register as such:
PTADD = 0;    //initialize as input (Data Direction Register) */
when I compile this I get an error saying the following
Error   : C1019: Incompatible type to previous declaration (found 'int ', expected 'PTAPESTR volatile ')
main.c line 9  
what is the proper way of doing this or am I missing something.