// Need to be all kmode so that we can write to shared memory.
//
RETAILMSG(1, (TEXT("TouchPanelpISR\n")));
while ( !bTerminate )
{
WaitForSingleObject( hTouchPanelEvent, gdwTouchIstTimeout );//死在这里
RETAILMSG(1, (TEXT("TouchPanelpISR\r\n")));//串口没有打印这句话,说明没有执行到这
EnterCriticalSection( &csMutex );
DEBUGMSG(ZONE_THREAD, (TEXT("TCH_INTR\r\n")) );
// Give the pdd the down state of the previous sample
if ( CurrentDown )
SampleFlags |= TouchSamplePreviousDownFlag;
else
SampleFlags &= ~TouchSamplePreviousDownFlag;
DdsiTouchPanelGetPoint( &SampleFlags, &RawX, &RawY );//这个函数里面才会调用Interuptdone函数。
if ( SampleFlags & TouchSampleIgnore )
{
// do nothing, not a valid sample
LeaveCriticalSection( &csMutex );
continue;
}