This commit is contained in:
刘可亮
2024-01-27 08:47:24 +08:00
parent d3bd993b5f
commit 9f7ba67007
2345 changed files with 74421 additions and 76616 deletions

View File

@@ -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;