_time_to_ticks returns 0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

_time_to_ticks returns 0

880 次查看
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 项奖励
回复
1 回复

727 次查看
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 项奖励
回复