error C1815: PT1AD not declared (or type name)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

error C1815: PT1AD not declared (or type name)

1,870件の閲覧回数
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..

ラベル(1)
0 件の賞賛
返信
1 返信

1,245件の閲覧回数
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 件の賞賛
返信