mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-16 03:18:54 +00:00
v1.0.3
This commit is contained in:
@@ -97,6 +97,7 @@ static rt_size_t drv_rtp_read_point(struct rt_touch_device *touch, void *buf,
|
||||
static rt_err_t drv_rtp_control(struct rt_touch_device *touch,
|
||||
int cmd, void *arg)
|
||||
{
|
||||
u32 val;
|
||||
switch (cmd) {
|
||||
case RT_TOUCH_CTRL_ENABLE_INT:
|
||||
hal_rtp_int_enable(&g_rtp_dev, 1);
|
||||
@@ -106,6 +107,12 @@ static rt_err_t drv_rtp_control(struct rt_touch_device *touch,
|
||||
hal_rtp_int_enable(&g_rtp_dev, 0);
|
||||
break;
|
||||
|
||||
case RT_TOUCH_CTRL_PDEB_VALID_CHECK:
|
||||
val = hal_rtp_pdeb_valid_check(&g_rtp_dev);
|
||||
if (val != RT_EOK)
|
||||
LOG_I("PDEB should be configured as 0xff%xff%x\n", val, val);
|
||||
break;
|
||||
|
||||
default:
|
||||
LOG_I("Unsupported cmd: 0x%x", cmd);
|
||||
return -RT_EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user