Files
OpenCellular/chip_interface/keyboard_backlight.h
Louis Yung-Chieh Lo 91daca6939 Add ec_keyboard_test.c
This CL also includes 4 pieces:
  1. main files: environment-independent (main.c) and
                            -dependent (ec_keyboard_test.c).
  2. stub files: chip_stub/keyboard.c simulates the real hardware.
                 chip_stub/keyboard.h is the header of testing functions.
  3. initial keyboard lib code: ec_keyboard.h
  4. rename Cr* function name to Ec* under chip_interface/.

BUG=None
TEST=make && make runtests
Expect seeing the output debug message from cros_ec/lib/ec_keyboard.c.

Change-Id: Ia7e8022060eb0a5d0a11abcbdb3f524942f5c68d
2011-10-26 22:12:19 +08:00

26 lines
686 B
C

/* 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_backlight.h - Keyboard backlight
*/
#ifndef __CHIP_INTERFACE_KEYBOARD_BACKLIGHT_H
#define __CHIP_INTERFACE_KEYBOARD_BACKLIGHT_H
/*
* The lightness value in this interface:
*
* 0 - off
* 255 - full
* others - undefined
*/
/* Configure PWM port and set the initial backlight value. */
EcError EcKeyboardBacklightInit(uint16_t init_lightness);
/* Set the mapped PWM value */
EcError EcKeyboardBacklightSet(uint16_t lightness);
#endif /* __CHIP_INTERFACE_KEYBOARD_BACKLIGHT_H */