summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-05-30 16:27:51 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2012-05-30 16:27:51 -0700
commit231199d5f06688d6504ce90e60ce7fdff65fae28 (patch)
tree70be110d6cbd034077d4e6128e45c52539bb952e /chip
parentdefbdc32d3ee94ce3c3c104049f5ec71e6e80d47 (diff)
parent288cae699bdd4437caa583c85dd925678e2d43c8 (diff)
downloadchrome-ec-231199d5f06688d6504ce90e60ce7fdff65fae28.tar.gz
Merge "stm32: use level interrupt instead of edge"
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/keyboard_scan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/chip/stm32/keyboard_scan.c b/chip/stm32/keyboard_scan.c
index 3a302969e0..b8051539d5 100644
--- a/chip/stm32/keyboard_scan.c
+++ b/chip/stm32/keyboard_scan.c
@@ -307,7 +307,7 @@ static int check_keys_changed(void)
CPUTS("]\n");
if (kb_fifo_add(raw_state) == EC_SUCCESS)
- board_interrupt_host();
+ board_interrupt_host(1);
else
CPRINTF("dropped keystroke\n");
}
@@ -383,6 +383,8 @@ int keyboard_scan_recovery_pressed(void)
static int keyboard_get_scan(uint8_t *data, int *resp_size)
{
kb_fifo_remove(data);
+ if (!kb_fifo_entries)
+ board_interrupt_host(0);
*resp_size = KB_OUTPUTS;
return EC_RES_SUCCESS;