freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

觸摸屏實(shí)驗(yàn)畢業(yè)設(shè)計(jì)論文)word格式(參考版)

2025-08-14 08:45本頁面
  

【正文】 。} 還有部分的文件是s3c2410提供的。 // do target (uHAL based ARM system) initialisation // TchScr_init()。 } hudelay(1000)。 case TCHSCR_ACTION_MOVE: Uart_Printf(0,Action=move:x=%d,\ty=%d\n,x,y)。 case TCHSCR_ACTION_UP: Uart_Printf(0,Action=up:x=%d,\ty=%d\n,x,y)。 case TCHSCR_ACTION_DOWN: Uart_Printf(0,Action=down:x=%d,\ty=%d\n,x,y)。 case TCHSCR_ACTION_DBCLICK: Uart_Printf(0,Action=double click:x=%d,\ty=%d\n,x,y)。 switch(mode){ case TCHSCR_ACTION_CLICK: Uart_Printf(0,Action=click:x=%d,\ty=%d\n,x,y)。x, amp。 for(。 int x,y。 return mode。 } oldx=*x。 break。 break。//得到觸摸點(diǎn)坐標(biāo) if(rADCDAT0amp。 } break。 } if(i==60) //沒有在規(guī)定的時(shí)間內(nèi)按下,視為單擊 mode=TCHSCR_ACTION_CLICK。//檢測(cè)到雙擊后延時(shí),防止拖尾 break。j40。}//如果單擊后很短時(shí)間內(nèi)按下,不視為雙擊 mode=TCHSCR_ACTION_DBCLICK。 if (i10) {i=60。i++){ if(!(rADCDAT0amp。 } if(i40){ //在規(guī)定的雙擊時(shí)間之內(nèi)抬起,檢測(cè)是不是及時(shí)按下 for(i=0。(115)){//抬起 break。i40。 oldy=*y。(115))){//有觸摸動(dòng)作 TchScr_GetScrXY(x, y)。amp。 for(。 static int oldx,oldy。 *y=(*yTchScr_Ymin)*LCDHEIGHT/(TchScr_YmaxTchScr_Ymin)。 /*unsigned int temp。 //Uart_Printf(0,x=%d,\ty=%d\n,*x,*y)。 SUBSRCPND|=(19)。 *y=oldy。0x3ff。0x3ff。(110)))。 //CLOCK_DELAY()。 rADCTSC|=(13)|(12)|(0)。 i++)。 for(i=0。 /*set ADC touch screen control register*/ rADCTSC = (08)|(17)|(16)|(05)|(14)|(03)|(02)|(3)。 /*set ACDCON*/ rADCCON=(PRSCEN_Enable14)|(PRSCVL6)|(SEL_MUX3)。= ~((0x03 30)|(0x03 28)|(0x03 26)|(0x03 24))。 }else if (channel == 1) { }}include ../inc/include ../inc/include inc/include inc/include inc/include define DPRINTF(...) //printfNULL/*復(fù)用功能管腳定義宏*/define nYPON 0x3define YMON 0x3define nXPON 0x3define XMON 0x3/*ACDCON宏*/define ECFLG_END 1 // End of A/D conversiondefine PRSCEN_Enable 1 //prescaler Enabledefine PRSCVL 49 //A/D converter in processdefine SEL_MUX 7 // xpdefine STDBM_NORMAL 0 //normal modedefine STDBM_STANDBY 1 //Standby modedefine READ_START 0 //Disable start by read operationdefine ENABLE_START 0 //No operation/*ADC touch screen control register宏*/define YM_SEN_Hi_Z 0 //YM=HiZdefine YM_SEN_GND 1 //YM=GNDdefine YP_SEN_External_voltage 0 //YP=External voltagedefine YP_SEN_AIN5 1 //conntected with AIN5define XM_SEN_Hi_Z 0 define XM_SEN_GND 1define XP_SEN_External_voltage 0define xp_SEN_AIN7 1define PULL_UP_ENABLE 0 //ENABLEdefine PULL_UP_DISABLE 1 //DISABLEdefine AUTO_PST_Normal 0 //Normal ADC conversiondefine AUTO_PST_AUTO 1 //Auto(sequential) x/y positioin conversion modedefine XY_PST 0 //No operation modedefine XY_PST_INT 0x3 //waiting for interrupt Mode/*ADC start or interval delay register*/define DELAY /*ADC conversion data0 register*/define UPDOWN_DOWN_0 0define UPDOWN_UP_0 1define AUTO_PST_sequencing_0 1define XY_PST_0 0/*ADC conversion data1 register*/define UPDOWN_DOWN_1 0define UPDOWN_UP_1 1define AUTO_PST_sequencing_1 1define XY_PST_1 0define LCDWIDTH 320define LCDHEIGHT 240int TchScr_Xmin=200,TchScr_Xmax=580, TchScr_Ymin=700,TchScr_Ymax=800。 set_gpio_ctrl (GPIO_TC_SPIMOSI)。 hudelay(1)。 } rSPPIN1=SPPIN。 } rSPPRE1=nSPPRE。 } rSPCON1=nSPCON。 } rSPPIN0=SPPIN。 } rSPPRE0=nSPPRE。 } rSPCON0=nSPCON。 }else return 0xff。 } }unsigned char SPIRecv ( int channel ){ if (channel == 0){ return rSPRDAT0。 while (!(rSPSTA1 amp。 1))。***************************************************************************\ 說明: spi接口驅(qū)動(dòng)程序\***************************************************************************///include ../ucosii/include ../inc/include ../inc/include ../inc/define GPIO_TC_SPIMISO (GPIO_MODE_ALT0 | GPIO_PULLUP_DIS | GPIO_E11)define GPIO_TC_SPIMOSI (GPIO_MODE_ALT0 | GPIO_PULLUP_DIS | GPIO_E12)define GPIO_TC_SPICLK (GPIO_MODE_ALT0 | GPIO_PULLUP_DIS | GPIO_E13)void SPISend ( unsigned char val, int channel ){ if ( channel == 0 ){ rSPTDAT0 = val。ExportSerialN(1)。}\ static int s3c2410_serialn_flush_output(void){return serial_flush_output(n)。}\ static int s3c2410_serialn_poll(void){return serial_poll(n)。}\ static int s3c2410_serialn_read(void){return serial_read(n)。 //Wait until tx shifter is empty. return 0。}__inline static int serial_flush_output(int ndev){ while(!(bUART(ndev, oUTRSTAT) amp。 //reset rx fifo bUART(ndev, oUFCON) |= UFCON_RX_REQ。 while(bUART(ndev, oUFSTAT) amp。 UFSTAT_RX_CNT) != 0)。 return 0。 UFSTAT_TX_FULL)。 0x2))。}__inline static int serial_read(int ndev){ return bUART(ndev, oURXHL)。 bUART(ndev, oUCON) = UCON_CLK_PCLK | UCON_TX_INT_PLS | UCON_RX_INT_PLS | UCON_TX_INT | UCON_RX_INT |UCON_RX_TIMEOU
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1