summaryrefslogtreecommitdiff
path: root/include/lightbar_msg_list.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-04-24 17:53:47 -0700
committerBill Richardson <wfrichar@chromium.org>2012-04-25 09:30:20 -0700
commitb4ac7cf558c77b85018584c0818b27ebe99eebf0 (patch)
tree3e097e7a6a762a5eece132ebc570f02927407c72 /include/lightbar_msg_list.h
parent5774ebbd78ea78f04cc89e57e1d56f45c990af0b (diff)
downloadchrome-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_msg_list.h')
-rw-r--r--include/lightbar_msg_list.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/lightbar_msg_list.h b/include/lightbar_msg_list.h
new file mode 100644
index 0000000000..d6a33ed20f
--- /dev/null
+++ b/include/lightbar_msg_list.h
@@ -0,0 +1,22 @@
+/* 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.
+ *
+ * This defines a list of lightbar messages. It's done in this odd way so that
+ * we can automatically derive the correct constants, functions, and message
+ * types.
+ */
+#define LIGHTBAR_MSG_LIST \
+ LBMSG(ERROR) \
+ LBMSG(S5) \
+ LBMSG(S3) \
+ LBMSG(S0) \
+ LBMSG(S5S3) \
+ LBMSG(S3S0) \
+ LBMSG(S0S3) \
+ LBMSG(S3S5) \
+ LBMSG(STOP) \
+ LBMSG(RUN) \
+ LBMSG(PULSE) \
+ LBMSG(TEST) \
+ LBMSG(KONAMI)