diff options
-rw-r--r-- | chip/it83xx/keyboard_raw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/it83xx/keyboard_raw.c b/chip/it83xx/keyboard_raw.c index 25f2b49c00..6c7a10c463 100644 --- a/chip/it83xx/keyboard_raw.c +++ b/chip/it83xx/keyboard_raw.c @@ -151,3 +151,8 @@ void keyboard_raw_interrupt(void) /* Wake the scan task */ task_wake(TASK_ID_KEYSCAN); } + +int keyboard_raw_is_input_low(int port, int id) +{ + return !(IT83XX_GPIO_DATA_MIRROR(port) & BIT(id)); +} |