_time_to_ticks returns 0

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

_time_to_ticks returns 0

429 Views
Mike_d
Contributor IV

Not sure why the ticks.HW_TICKS is set to 0 in this code below.

bool result;

TIME_STRUCT time;

MQX_TICK_STRUCT ticks;

time.SECONDS = 0;

time.MILLISECONDS = 100;

result = _time_to_ticks(&time, &ticks);

0 Kudos
1 Reply

276 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Michael:

I added your code into the hello world example in MQX 4.2, and tested it with K64frdm board, the returned value is 1(true). can you try it again?

Regards

Daniel

0 Kudos