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
Hello,
can you share your project?
That message from the compiler sounds like you are not properly including the header file(s).
Erich
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>
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
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>