diff options
author | Eric Caruso <ejcaruso@chromium.org> | 2014-09-17 16:52:31 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-25 07:59:16 +0000 |
commit | fb5ff7b1bb59174ea140d18cb84ce1d6599337c1 (patch) | |
tree | 9e78996ca8d6fbe6c51cf272b94e5b5e00727f2b /include/lightbar_msg_list.h | |
parent | 2939b986cfc4fc3f8b46b37b4d345bec270418ca (diff) | |
download | chrome-ec-fb5ff7b1bb59174ea140d18cb84ce1d6599337c1.tar.gz |
lightbar: add seq type PROGRAM for user-programmable sequences
This diff allows the user to send small programs to the EC and
gain control of the lightbar. Right now, this is only exposed
through ectool, and sysfs support will come later.
To send a program to the EC, use
$ ectool lightbar program /path/to/program.bin
and then start running the program with
$ ectool lightbar seq program
BUG=None
BRANCH=ToT
TEST=Using the above steps with hand-assembled programs.
Checked that infinite bytecode loops do not hang the EC.
Checked that bad opcodes exit with an error.
Stress tested pushing programs and changing sequences.
Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
Change-Id: I635fb041a5dc5c403f7c26fb9a41b5563be9b6b7
Reviewed-on: https://chromium-review.googlesource.com/219558
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/lightbar_msg_list.h')
-rw-r--r-- | include/lightbar_msg_list.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lightbar_msg_list.h b/include/lightbar_msg_list.h index fe75ccc021..77b8c60ad2 100644 --- a/include/lightbar_msg_list.h +++ b/include/lightbar_msg_list.h @@ -20,4 +20,5 @@ LBMSG(PULSE), /* A */ \ LBMSG(TEST), /* B */ \ LBMSG(KONAMI), /* C */ \ - LBMSG(TAP), /* D */ + LBMSG(TAP), /* D */ \ + LBMSG(PROGRAM), /* E */ |