_time_to_ticks returns 0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

_time_to_ticks returns 0

883件の閲覧回数
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 返信

730件の閲覧回数
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 件の賞賛
返信