summaryrefslogtreecommitdiff
path: root/include/lightbar_msg_list.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove PULSE and TEST sequences from lightbar moduleVic Yang2014-10-081-5/+3
| | | | | | | | | | | | | | | PULSE and TEST sequences are not used anywhere. Remove them to save flash space. Also, fix msleep(MSEC) calls in the unit test; it's essentially usleep(SECOND) written in an incorrect way. BUG=chrome-os-partner:32203 TEST=make buildall BRANCH=None Change-Id: I61ba897df632538eb89364a4c913d5fee87f3864 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/220711 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
* lightbar: add seq type PROGRAM for user-programmable sequencesEric Caruso2014-09-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add display-battery-level function to lightbarBill Richardson2014-06-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new lightbar sequence (TAP), which temporarily displays the battery level. It pulses if the system is charging. BUG=chrome-os-partner:29041 BRANCH=ToT TEST=manual From the EC console, run lightbar seq tap The lightbar should change temporarily. Then run lightbar demo on and press the Up, Down, Left, and Right keys to fake the battery charge level (up & down) and the AC present state (left & right). Run the lightbar seq tap command periodically to watch it change. Change-Id: I84ff928d93060f7ef7d46d608732d37cf5185aff Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/202964 Reviewed-by: Randall Spangler <rspangler@chromium.org>
* Create host-side lightbar bikeshedding tool.Bill Richardson2012-04-261-13/+13
| | | | | | | | | | | | | BUG=chrome-os-partner:7839 TEST=manual cd src/platform/ec make BOARD=link copy ./build/link/util/lbplay to the host and run it as root. Change-Id: I6a4a842b7500751185c8f4c2744f4389226bae9b Signed-off-by: Bill Richardson <wfrichar@chromium.org>
* Give ectool the same lightbar commands as the console.Bill Richardson2012-04-251-13/+13
| | | | | | | | | | | BUG=chrome-os-partner:7839 TEST=manual Try "lightbar help" on the EC console and "ectool lightbar help" on the host. You should see the same commands and behavior. Change-Id: I6e879e8bb892ef5ada7ef85a97fdf243149f4cb6 Signed-off-by: Bill Richardson <wfrichar@chromium.org>
* Clean up lightbar msg command parsing, add some help.Bill Richardson2012-04-251-0/+22
BUG=none TEST=none Change-Id: I5767bd45bd66793606014b3ce8020d0eb2e17090 Signed-off-by: Bill Richardson <wfrichar@chromium.org>