diff options
author | Bill Richardson <wfrichar@chromium.org> | 2012-04-24 17:53:47 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2012-04-25 09:30:20 -0700 |
commit | b4ac7cf558c77b85018584c0818b27ebe99eebf0 (patch) | |
tree | 3e097e7a6a762a5eece132ebc570f02927407c72 /include/lightbar.h | |
parent | 5774ebbd78ea78f04cc89e57e1d56f45c990af0b (diff) | |
download | chrome-ec-b4ac7cf558c77b85018584c0818b27ebe99eebf0.tar.gz |
Clean up lightbar msg command parsing, add some help.
BUG=none
TEST=none
Change-Id: I5767bd45bd66793606014b3ce8020d0eb2e17090
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/lightbar.h')
-rw-r--r-- | include/lightbar.h | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/include/lightbar.h b/include/lightbar.h index 58e4053765..a18f236f3f 100644 --- a/include/lightbar.h +++ b/include/lightbar.h @@ -2,33 +2,19 @@ * 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 +/* Define the types of sequences */ +#define LBMSG(state) LIGHTBAR_##state, +#include "lightbar_msg_list.h" enum lightbar_sequence { - LIGHTBAR_NULL = 0, /* not used */ - /* CPU states */ - LIGHTBAR_S5, /* 1 */ - LIGHTBAR_S3, /* 2 */ - LIGHTBAR_S0, /* 3 */ - /* CPU state transitions */ - LIGHTBAR_S5S3, /* 4 */ - LIGHTBAR_S3S0, /* 5 */ - LIGHTBAR_S0S3, /* 6 */ - LIGHTBAR_S3S5, /* 7 */ - /* Who's in charge? */ - LIGHTBAR_EC_STOP, /* 8 - EC ignore LEDs */ - LIGHTBAR_EC_RUN, /* 9 - EC drive LEDs */ - /* Extra patterns */ - LIGHTBAR_PULSE, /* a */ - LIGHTBAR_TEST, /* b */ - LIGHTBAR_KONAMI, /* c */ - /* that's all */ + LIGHTBAR_MSG_LIST LIGHTBAR_NUM_SEQUENCES }; +#undef LBMSG /* Request a preset sequence from the lightbar task. */ void lightbar_sequence(enum lightbar_sequence s); |