|
各位大哥,我最近在sumsung2443上开发触摸屏的驱动程序,INT_ADC是触摸屏中断,timer3是ADC采样计时器,不知道怎么回事,经常丢触摸笔抬起后的up中断.大致流程如下,请各位告知是什么原因:
DdsiTouchPanelGetPoint(TOUCH_PANEL_SAMPLE_FLAGS * pTipStateFlags,
INT * pUncalX,
INT * pUncalY)
{
......
if (v_pINTregs->SUBSRCPND & (1<
{
*pTipStateFlags = TouchSampleValidFlag;
if ( (v_pADCregs->ADCDAT0 & (1 << 15)) ||
(v_pADCregs->ADCDAT1 & (1 << 15)) )
{
......
}
else
{
......
}
v_pINTregs->SUBSRCPND = (1<
v_pINTregs->INTSUBMSK &= ~(1<
InterruptDone(gIntrTouch);
}
else
{
......
if ( (v_pADCregs->ADCDAT0 & (1 << 15)) ||
(v_pADCregs->ADCDAT1 & (1 << 15)) )
{
......
}
if (bTSP_DownFlag)
{
......
}
else
{
*pTipStateFlags = TouchSampleIgnore;
TSP_SampleStop();
}
InterruptDone(gIntrTouchChanged);
}
}
|
|