This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请教个触摸屏 配置的 “ steps_to_configure ”这个参数的意义的问题,谢谢!



最近偶然看了下 AM335x 的TSc controller的代码,在 4-wire TSC with 4 general-purpose ADC channels 模式下,为什么steps_to_configure 的赋值是5?

我跟了下代码,发现在tscadc_probe()中 将 这个配置值steps_to_config * 2 + 1 写进了 TSCADC_REG_FIFO0THR去,看手册也没一时搞明白。还得请教下IT诸位给个简明的解答,谢谢

/* TSc controller */
static struct tsc_data am335x_touchscreen_data = {
.wires = 4,//四线电阻: 横向X1,X2,纵向Y1,Y2,四条电阻线构成
.x_plate_resistance = 200,
.steps_to_configure = 5,
};

static struct adc_data am335x_adc_data = {
.adc_channels = 4,
};