TDRV004-SW-82 - Linux Device Driver
Page 58 of 62
3.2.18 tdrv004WaitForINT1
NAME
tdrv004WaitForINT1 – Wait for incoming Local Interrupt Source 1
SYNOPSIS
TDRV004_STATUS tdrv004WaitForINT1
(
TDRV004_HANDLE
hdl,
int
TimeoutMS
);
DESCRIPTION
This function enables the corresponding interrupt source, and waits for Local Interrupt Source 1
(LINT1) to arrive. After the interrupt has arrived, this specific local interrupt source is disabled.
The delay between an incoming interrupt and the return of the described function is system-
dependent, and is most likely several microseconds.
For high interrupt load, a customized device driver should be used which serves the module-
specific functionality directly on interrupt level.
PARAMETERS
hdl
This argument specifies the device handle to the hardware module retrieved by a call to the
corresponding open-function.
TimeoutMS
This value specifies the amount of time to wait for the incoming interrupt event. The timeout
value is specified in milliseconds. However, the timeout granularity depends on the system
ticks. To wait indefinitely, specify -1.