mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
stm32: Reduce keyboard scan period from 10ms to 3ms
Experimentally it is possible to press a key on snow for only 4.8ms. We should aim to scan more frequently to catch those who only just touch the keys, or type very quickly. It takes a little over 2ms to complete a keyboard scan at present. We shold aim to reduce this, but for now, it seems safe to reduce the default scanning frequency to 3ms. BUG=chrome-os-partner:12179 TEST=manual Type on keyboard on snow in browser, and see that we still get results and the EC is stable. Change-Id: I60827c33a58c34dd808504e58bca480bd61f5932 BRANCH=snow Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/34634 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -93,7 +93,7 @@ static struct ec_mkbp_config config = {
|
||||
EC_MKBP_VALID_DEBOUNCE_UP | EC_MKBP_VALID_FIFO_MAX_DEPTH,
|
||||
.valid_flags = EC_MKBP_FLAGS_ENABLE,
|
||||
.flags = EC_MKBP_FLAGS_ENABLE,
|
||||
.scan_period_us = 10000,
|
||||
.scan_period_us = 3000,
|
||||
.poll_timeout_us = 100 * 1000,
|
||||
.min_post_scan_delay_us = 1000,
|
||||
.output_settle_us = 50,
|
||||
|
||||
Reference in New Issue
Block a user