static void mt_auxadc_disable_penirq(void) { //Turn off PENIRQ detection circuit AUXADC_DRV_SetBits16((volatile u16 *)AUXADC_TP_CMD, 1); //run once touch function mt_tpd_read_adc(TP_CMD_ADDR_X); }
static void mt_auxadc_disable_penirq(void) { //disable RTP if(adc_rtp_set) { adc_rtp_set = 0; *(volatile unsigned short *)AUXADC_CON_RTP = 1; } //Turn off PENIRQ detection circuit *(volatile unsigned short *)AUXADC_TP_CMD = 1; //run once touch function mt_tpd_read_adc(TP_CMD_ADDR_X); }