How to use PEx Timeout component

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

How to use PEx Timeout component

699 次查看
javervalino
Contributor III

Hi,

Can anyone tell me how to use the timeout component in PEx?

I did something like this.. But unfortunately, it doesn't work.

TMOUT1_Init();

handle = TMOUT1_GetCounter(4000);

res = TMOUT1_Value(handle);

while (TMOUT1_CounterExpired(handle) != TRUE) {

printf(“%d \r\n”, res);

}

TMOUT1_LeaveCounter(handle);

printf(“%d \r\n”, res);

Thank you in advance.

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

546 次查看
BlackNight
NXP Employee
NXP Employee
0 项奖励
回复