其他共用配置
29 May 2024
Read time: 2 minute(s)
config AIC_TOUCH_PANEL_I2C_CHAN //I2C总线号宏定义
string "Touch using I2C channel index"
default "i2c3"
depends on AIC_USING_CTP
config AIC_TOUCH_PANEL_RST_PIN //复位引脚宏定义
string "Touch reset pin"
default "PA.8"
depends on AIC_USING_CTP
config AIC_TOUCH_PANEL_INT_PIN //中断引脚宏定义
string "Touch irq pin"
default "PA.9"
depends on AIC_USING_CTP
config AIC_TOUCH_X_COORDINATE_RANGE //X轴范围宏定义
int "Touch x coordinate range"
default 1024
depends on AIC_USING_CTP
config AIC_TOUCH_Y_COORDINATE_RANGE //Y轴范围宏定义
int "Touch y coordinate range"
default 600
depends on AIC_USING_CTP
config AIC_TOUCH_X_FILP //X轴坐标翻转宏定义
bool "Touch filp x coordinate"
default n
depends on AIC_USING_CTP
config AIC_TOUCH_Y_FILP //Y轴坐标翻转宏定义
bool "Touch filp y coordinate"
default n
depends on AIC_USING_CTP
config AIC_TOUCH_90_DEGREE_ROTATION //坐标90度旋转宏定义
bool "Touch 90 degrees rotation"
default n
depends on AIC_USING_CTP
config AIC_TOUCH_270_DEGREE_ROTATION //坐标270度旋转宏定义
bool "Touch 270 degrees rotation"
default n
depends on AIC_USING_CTP
config AIC_TOUCH_REPORT_X_COORDINATE //X轴坐标范围上报宏定义
int
default AIC_TOUCH_Y_COORDINATE_RANGE if AIC_TOUCH_90_DEGREE_ROTATION
default AIC_TOUCH_Y_COORDINATE_RANGE if AIC_TOUCH_270_DEGREE_ROTATION
default AIC_TOUCH_X_COORDINATE_RANGE
depends on AIC_USING_CTP
config AIC_TOUCH_REPORT_Y_COORDINATE //Y轴坐标范围上报宏定义
int
default AIC_TOUCH_X_COORDINATE_RANGE if AIC_TOUCH_90_DEGREE_ROTATION
default AIC_TOUCH_X_COORDINATE_RANGE if AIC_TOUCH_270_DEGREE_ROTATION
default AIC_TOUCH_Y_COORDINATE_RANGE
depends on AIC_USING_CTP