mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-25 13:38:54 +00:00
v1.0.3
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
#-----------------------------
|
||||
# RTP devices local parameter
|
||||
#-----------------------------
|
||||
|
||||
menu "RTP parameter"
|
||||
depends on AIC_USING_RTP
|
||||
|
||||
config AIC_RTP_PERIOD_MS
|
||||
int "The sample period of RTP(in cycle mode)"
|
||||
default 15
|
||||
|
||||
config AIC_RTP_MAX_PRESSURE
|
||||
int "The pressure threshold of RTP"
|
||||
default 800
|
||||
|
||||
config AIC_RTP_X_PLATE
|
||||
int "The x-plate value of RTP touchscreen"
|
||||
range 0 1024
|
||||
default 235
|
||||
|
||||
config AIC_RTP_Y_PLATE
|
||||
int "The Y-plate value of RTP touchscreen"
|
||||
range 0 1024
|
||||
default 0
|
||||
|
||||
config AIC_RTP_PDEB
|
||||
hex "The press detect enable debounce"
|
||||
range 0 0xffffffff
|
||||
default 0xffffffff
|
||||
|
||||
config AIC_RTP_DELAY
|
||||
hex "The precharge delay of RTP"
|
||||
range 0 0xffffffff
|
||||
default 0x4f00004f
|
||||
endmenu
|
||||
@@ -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