AnsweredAssumed Answered

Problem with parameters in SetOffsetTicks method.

Question asked by Kiven Cortes on May 21, 2014
Latest reply on May 22, 2014 by Kiven Cortes



I just got my kl46z.

Im using a TimerUnit to make 2 PWM signals, one on each channel (0 & 1), and I want to change the offset values by using SetOffsetTicks method.

The problem is that when I use the SetOffsetTicks method I get some errors.

The code I use is this one:

TU2_SetOffsetTicks(LDD_TDeviceData *DeviceDataPtr, uint8_t 0, TU2_TValueType 25000);


cause it didn't work I tried with this one:

TU2_SetOffsetTicks( LDD_TDeviceData *TU2_TDeviceDataPtr, uint8_t 0, TU2_TValueType 25000);


The errors that I get are these ones:


../Sources/Events.c: In function 'AS1_OnRxChar':  //*****************Im trying to use this method (SetOffsetTicks) inside this Serial communication event but even if I try to use it in the main code I still get this.

../Sources/Events.c:101:26: error: expected expression before 'LDD_TDeviceData'

mingw32-make: *** [Sources/Events.o] Error 1


I have Auto initialization enabled.

How do I fix this?

Thanks in advance.