How to use PEx Timeout component

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

How to use PEx Timeout component

541 Views
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.

Labels (1)
Tags (2)
0 Kudos
1 Reply

388 Views
BlackNight
NXP Employee
NXP Employee
0 Kudos