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.