Hi support! I am learning to programing a Kinetis K40 and traing to toggle a led using de comand Bit1_NegVal(). I recieve the error: expected expression before 'LDD_TDeviceData'. How a sove this problem? Thanks

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

Hi support! I am learning to programing a Kinetis K40 and traing to toggle a led using de comand Bit1_NegVal(). I recieve the error: expected expression before 'LDD_TDeviceData'. How a sove this problem? Thanks

1,743 Views
lucianomoraes
Contributor I

Hi support! I am learning to programing a Kinetis K40 and traing to toggle a led using de comand Bit1_NegVal().

I recieve the error: expected expression before 'LDD_TDeviceData'.

pastedImage_0.png

How a sove this problem?

Thanks

0 Kudos
Reply
4 Replies

1,617 Views
BlackNight
NXP Employee
NXP Employee

Hello,

can you share your project?

That message from the compiler sounds like you are not properly including the header file(s).

Erich

0 Kudos
Reply

1,617 Views
lucianomoraes
Contributor I

Hi, Eric!

Yes, the project is attached.

thanks.

2016-06-28 3:24 GMT-03:00 BlackNight <admin@community.freescale.com>:

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Hi support! I am learning to programing a Kinetis K40 and traing to toggle

a led using de comand Bit1_NegVal(). I recieve the error: expected

expression before 'LDD_TDeviceData'. How a sove this problem? Thanks

reply from Erich Styger

<https://community.nxp.com/people/BlackNight?et=watches.email.thread> in *Kinetis

Microcontrollers* - View the full discussion

<https://community.nxp.com/message/806328?et=watches.email.thread#comment-806328>

0 Kudos
Reply

1,617 Views
BlackNight
NXP Employee
NXP Employee

Hi Luciano,

I get an error because you try to call Bit1_NegVal() without the device handle (and this is not what you have in your screenshot):

void TI1_OnInterrupt(LDD_TUserData *UserDataPtr)

{

  /* Write your code here ... */

Bit1_NegVal();

}

Correct is:

void TI1_OnInterrupt(LDD_TUserData *UserDataPtr)

{

  /* Write your code here ... */

  Bit1_NegVal(Bit1_DeviceData);

}

Then things compile properly on my side.

Erich

0 Kudos
Reply

1,617 Views
lucianomoraes
Contributor I

Thanks, Eric!

I will try to download in the TWR-KIT.

Luciano.

Em terça-feira, 28 de junho de 2016, BlackNight <

admin@community.freescale.com> escreveu:

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Hi support! I am learning to programing a Kinetis K40 and traing to toggle

a led using de comand Bit1_NegVal(). I recieve the error: expected

expression before 'LDD_TDeviceData'. How a sove this problem? Thanks

reply from Erich Styger

<https://community.nxp.com/people/BlackNight?et=watches.email.thread> in *Kinetis

Microcontrollers* - View the full discussion

<https://community.nxp.com/message/806725?et=watches.email.thread#comment-806725>

0 Kudos
Reply