zmk/app/drivers/kscan
Joel Spadin b276a3bfb0 refactor(kscan): batch GPIO reads by port
Changed the GPIO matrix and direct GPIO key scan drivers to do a single
read per port instead of one read per pin. This is much more efficient
for some types of GPIO drivers, such as I2C GPIO expanders.

To accomplish this with minimal overhead, we now sort input pins by port
at driver init. if we iterate through the pins in the sorted order, all
pins on the same port are consecutive, so we only need to read each port
once the first time we see it.
2023-05-28 23:33:34 -06:00
..
CMakeLists.txt refactor(kscan): batch GPIO reads by port 2023-05-28 23:33:34 -06:00
debounce.c feat(kscan): Improve matrix debouncing 2021-10-26 23:52:13 -04:00
debounce.h refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
Kconfig refactor: Replace tabs with spaces 2023-04-24 16:07:04 -07:00
kscan_composite.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
kscan_gpio_demux.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
kscan_gpio_direct.c refactor(kscan): batch GPIO reads by port 2023-05-28 23:33:34 -06:00
kscan_gpio_matrix.c refactor(kscan): batch GPIO reads by port 2023-05-28 23:33:34 -06:00
kscan_gpio.c refactor(kscan): batch GPIO reads by port 2023-05-28 23:33:34 -06:00
kscan_gpio.h refactor(kscan): batch GPIO reads by port 2023-05-28 23:33:34 -06:00
kscan_mock.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00