error C1815: PT1AD not declared (or type name)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error C1815: PT1AD not declared (or type name)

1,185 Views
suprakashghosh
Contributor I

#define DISPCMND  PT0AD              //DISPLAYCMD directed to port PTOAD

#define DISPDATA  PT1AD              //DISPLAYDATA directed to port PT1AD

 

 

/*

  ---

  --- local function

  ---

*/

 

 

void SendDataAndCmnd(char dt,char c1,char c2,char c3) {   //used to out data

  DISPDATA  = dt;                                         //and command

  DISPCMND  = c1;

  DISPCMND  = c2;

  DISPCMND  = c3;

}

 

In the above source, I am getting an error C1815: PT1AD not declared (or type name) although mc9s12g64.h is included..

 

Would you please help me..

Labels (1)
0 Kudos
1 Reply

560 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hello,

I just posted your code in my new created G64 project. there is no compile error. see attached.

please refer this demo code to modify yours.

if this can't help, please send me the project with C1815 error message. I will check it directly from my side. thanks!


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos