mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
Previously this was in lightbar.h. ec_commands.h should not require other header files. Also make brightness local variable static, so it won't leak outside lightbar module. This is simply code cleanup; values themselves have not changed. BUG=none TEST=if it builds, it's fine BRANCH=none (not required in link branch since it's just cleanup) Change-Id: I5722fb677fcec99e0826e3dfc0b22033781b576f Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/32815 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Yung-Chieh Lo <yjlou@chromium.org>
34 lines
1004 B
C
34 lines
1004 B
C
/* 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.
|
|
*/
|
|
/* Ask the EC to set the lightbar state to reflect the CPU activity */
|
|
|
|
#ifndef __CROS_EC_LIGHTBAR_H
|
|
#define __CROS_EC_LIGHTBAR_H
|
|
|
|
/****************************************************************************/
|
|
/* Internal stuff */
|
|
|
|
/* Define the types of sequences */
|
|
#define LBMSG(state) LIGHTBAR_##state
|
|
#include "lightbar_msg_list.h"
|
|
enum lightbar_sequence {
|
|
LIGHTBAR_MSG_LIST
|
|
LIGHTBAR_NUM_SEQUENCES
|
|
};
|
|
#undef LBMSG
|
|
|
|
/* Request a preset sequence from the lightbar task. */
|
|
void lightbar_sequence(enum lightbar_sequence s);
|
|
|
|
/****************************************************************************/
|
|
/* External stuff */
|
|
|
|
/* These are used for demo purposes */
|
|
extern void demo_battery_level(int inc);
|
|
extern void demo_is_charging(int ischarge);
|
|
extern void demo_brightness(int inc);
|
|
|
|
#endif /* __CROS_EC_LIGHTBAR_H */
|