summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/blipper/board.c13
-rw-r--r--board/blipper/board.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/board/blipper/board.c b/board/blipper/board.c
index e26b3d4d51..480ca5c6da 100644
--- a/board/blipper/board.c
+++ b/board/blipper/board.c
@@ -41,6 +41,19 @@
#define CPRINTUSB(format, args...) cprints(CC_USBCHARGE, format, ## args)
#define INT_RECHECK_US 5000
+__override struct keyboard_scan_config keyscan_config = {
+ .output_settle_us = 80,
+ .debounce_down_us = 30 * MSEC,
+ .debounce_up_us = 30 * MSEC,
+ .scan_period_us = 3 * MSEC,
+ .min_post_scan_delay_us = 1000,
+ .poll_timeout_us = 100 * MSEC,
+ .actual_key_mask = {
+ 0x1c, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff,
+ 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */
+ },
+};
+
/* C0 interrupt line shared by BC 1.2 and charger */
static void check_c0_line(void);
DECLARE_DEFERRED(check_c0_line);
diff --git a/board/blipper/board.h b/board/blipper/board.h
index cd4f9b0d2a..7d8278c61f 100644
--- a/board/blipper/board.h
+++ b/board/blipper/board.h
@@ -65,6 +65,7 @@
/* KeyBoard */
#define CONFIG_KEYBOARD_REFRESH_ROW3
#define CONFIG_KEYBOARD_KEYPAD
+#define CONFIG_KEYBOARD_STRICT_DEBOUNCE
/* USB Type A Features */
#define USB_PORT_COUNT 1