summaryrefslogtreecommitdiff
path: root/include/keyboard_scan.h
blob: 590f482317d64f3dc548a38a614c717027b9ff03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Keyboard scanner module for Chrome EC */

#ifndef __CROS_EC_KEYBOARD_SCAN_H
#define __CROS_EC_KEYBOARD_SCAN_H

#include "common.h"

/* Initializes the module. */
int keyboard_scan_init(void);

/* Returns non-zero if recovery key was pressed at boot.  Used by st32m-based
 * boards only; lm4-based boards use power_recovery_pressed(). */
int keyboard_scan_recovery_pressed(void);

/* clear any saved keyboard state (empty FIFO, etc) */
void keyboard_clear_state(void);

/* Enables/disables keyboard matrix scan. */
void keyboard_enable_scanning(int enable);

#endif  /* __CROS_EC_KEYBOARD_SCAN_H */