touchscreen: Increase report rate to 25fps

The touchscreen repeat interval effectively controls the report
rate of the touchscreen to the action code. Touch interactions
are smoother with a faster refresh rate, but the CPU needs to be
fast enough to keep up, or we risk queue overflows.

25fps is the minimum required to appear smooth, and probably all
targets will be able to handle the extra CPU load.

Change-Id: I96dcc80ea2ce8b915ff5682360c2e719b835388d
This commit is contained in:
Aidan MacDonald 2022-04-20 10:30:37 +01:00 committed by Solomon Peachy
parent 9e254acab3
commit 0f4cc33d26

View file

@ -84,7 +84,7 @@ static bool enable_sw_poweroff = true;
/* speed repeat finishes at, in centiseconds */ /* speed repeat finishes at, in centiseconds */
#define REPEAT_INTERVAL_FINISH (5*HZ/100) #define REPEAT_INTERVAL_FINISH (5*HZ/100)
/* repeat interval for touch events */ /* repeat interval for touch events */
#define REPEAT_INTERVAL_TOUCH (5*HZ/100) #define REPEAT_INTERVAL_TOUCH (4*HZ/100)
static int lastdata = 0; static int lastdata = 0;
static int button_read(int *data); static int button_read(int *data);