tchscr.h

来自「博创2410的实验代码」· C头文件 代码 · 共 30 行

H
30
字号
#include "../inc/macro.h"

#ifndef __TCHSCR_H__
#define __TCHSCR_H__

/////////触摸屏动作////////
#define TCHSCR_ACTION_NULL			0	
#define TCHSCR_ACTION_CLICK		1	//触摸屏单击
#define TCHSCR_ACTION_DBCLICK		2	//触摸屏双击
#define TCHSCR_ACTION_DOWN		3	//触摸屏按下
#define TCHSCR_ACTION_UP			4	//触摸屏抬起
#define TCHSCR_ACTION_MOVE		5	//触摸屏移动
#define SUBSRCPND (*(volatile unsigned *)0X4A000018)
#define rADCDLY (*(volatile unsigned *)0x58000008)
#define rADCTSC (*(volatile unsigned *)0x58000004)
#define rADCCON (*(volatile unsigned *)0x58000000)
#define rADCDAT0 (*(volatile unsigned *)0x5800000c)
#define rADCDAT1 (*(volatile unsigned *)0x58000010)
typedef struct {
	int x;
	int y;
	int action;
}tsdata, *Ptsdata;

void TchScr_GetScrXY(int *x, int *y);
//void Touch_Screen_Task(void *Id);		//触摸屏任务

void TchScr_init(void);
#endif //#ifndef __TCHSCR_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?