diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-09-26 15:50:23 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-30 01:53:53 +0000 |
commit | 87762fa6997d3deb55dec777d5fa42c3cabdf7ca (patch) | |
tree | fc057b0aedbb8c26417f0d83705d869ee7e7fed3 /include/lightbar.h | |
parent | af3d103dbc3ddbb6004240186a946efe1cc8b8f4 (diff) | |
download | chrome-ec-87762fa6997d3deb55dec777d5fa42c3cabdf7ca.tar.gz |
Add compiler/decompiler for lightbar bytecode programs.
BUG=none
BRANCH=ToT
TEST=manual
make BOARD=samus
for i in extra/lightbar/programs/[g-z]*.bin; do
./build/samus/util/lbcc -d $i /tmp/x.lbs
./build/samus/util/lbcc /tmp/x.lbs /tmp/x.bin
cmp $i /tmp/x.bin
done
Change-Id: I86c014c425e917ecafadd1c6845fcf2e5b4edbb7
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/220244
Diffstat (limited to 'include/lightbar.h')
-rw-r--r-- | include/lightbar.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/lightbar.h b/include/lightbar.h index c15604bd87..e3792b41f0 100644 --- a/include/lightbar.h +++ b/include/lightbar.h @@ -19,6 +19,21 @@ enum lightbar_sequence { }; #undef LBMSG +/* Bytecode field constants */ +enum lb_color { + LB_COL_RED, + LB_COL_GREEN, + LB_COL_BLUE, + LB_COL_ALL +}; + +enum lb_control { + LB_CONT_COLOR0, + LB_CONT_COLOR1, + LB_CONT_PHASE, + LB_CONT_MAX +}; + /* Request a preset sequence from the lightbar task. */ void lightbar_sequence(enum lightbar_sequence s); |