diff options
Diffstat (limited to 'cros_ec/include/ec_keyboard.h')
-rw-r--r-- | cros_ec/include/ec_keyboard.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cros_ec/include/ec_keyboard.h b/cros_ec/include/ec_keyboard.h new file mode 100644 index 0000000000..c1c5d5e250 --- /dev/null +++ b/cros_ec/include/ec_keyboard.h @@ -0,0 +1,20 @@ +/* Copyright (c) 2011 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 emulation */ + +#ifndef __CROS_EC_KEYBOARD_H +#define __CROS_EC_KEYBOARD_H + +/* Register the board-specific keyboard matrix translation function. + * The callback function accepts col/row and returns the scan code. + */ +EcError CrKeyboardMatrixRegister( + int8_t col_num, int8_t row_num, + EcError (*callback)( + int8_t column, int8_t row, int8_t pressed, + uint8_t *scan_code, int32_t* len)); + +#endif /* __CROS_EC_KEYBOARD_H */ |