diff options
Diffstat (limited to 'board/nightfury/board.c')
-rw-r--r-- | board/nightfury/board.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/nightfury/board.c b/board/nightfury/board.c index 8b0713e216..968274b221 100644 --- a/board/nightfury/board.c +++ b/board/nightfury/board.c @@ -26,6 +26,7 @@ #include "gpio.h" #include "hooks.h" #include "host_command.h" +#include "keyboard_scan.h" #include "lid_switch.h" #include "power.h" #include "power_button.h" @@ -304,6 +305,19 @@ const struct motion_sensor_t *motion_als_sensors[] = { }; BUILD_ASSERT(ARRAY_SIZE(motion_als_sensors) == ALS_COUNT); +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 */ + }, +}; + /******************************************************************************/ /* Physical fans. These are logically separate from pwm_channels. */ |