未验证 提交 b7c2c85a 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4320 from DavidLin1577/patch-5

[bsp] mini optimized the drv_xpt2046.c
......@@ -19,7 +19,7 @@
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
//XPT2049
//XPT2046
#define READ_X (0xD0)
#define READ_Y (0x90)
......@@ -218,7 +218,7 @@ static struct rt_touch_ops touch_ops =
.touch_control = xpt2046_control,
};
static int hw_xpt2049_touch_init(void)
static int hw_xpt2046_touch_init(void)
{
//touch sem
rt_sem_init(&touch_ack, "touch_ack", 0, RT_IPC_FLAG_FIFO);
......@@ -249,4 +249,4 @@ static int hw_xpt2049_touch_init(void)
return 0;
}
INIT_DEVICE_EXPORT(hw_xpt2049_touch_init);
INIT_DEVICE_EXPORT(hw_xpt2046_touch_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册