diff options
author | Vic Yang <victoryang@chromium.org> | 2014-10-01 10:33:29 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-08 02:50:54 +0000 |
commit | 91cfdd0dac2c1a89f3c8fc2aa8af6ce153589026 (patch) | |
tree | b5a1becfe3efd893bf48635ccf4c317c71f55baa /common/lb_common.c | |
parent | a3ddf04ca9904e73ae6b7bec0218f5861b3f2a74 (diff) | |
download | chrome-ec-91cfdd0dac2c1a89f3c8fc2aa8af6ce153589026.tar.gz |
Remove PULSE and TEST sequences from lightbar module
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>
Diffstat (limited to 'common/lb_common.c')
-rw-r--r-- | common/lb_common.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/common/lb_common.c b/common/lb_common.c index 8803608328..41617f1dff 100644 --- a/common/lb_common.c +++ b/common/lb_common.c @@ -223,32 +223,6 @@ void lb_on(void) controller_write(1, 0x01, 0x20); } -/* - * This sets up the auto-cycling features of the controllers to make a - * semi-random pattern of slowly fading colors. This is interesting only - * because it doesn't require any effort from the EC. -*/ -void lb_start_builtin_cycle(void) -{ - int r = scale(255, MAX_RED); - int g = scale(255, MAX_BLUE); - int b = scale(255, MAX_GREEN); - struct initdata_s pulse_vals[] = { - {0x11, 0xce}, - {0x12, 0x67}, - {0x13, 0xef}, - {0x15, b}, - {0x16, r}, - {0x17, g}, - {0x18, b}, - {0x19, r}, - {0x1a, g}, - }; - - set_from_array(pulse_vals, ARRAY_SIZE(pulse_vals)); - controller_write(1, 0x13, 0xcd); /* this one's different */ -} - static const uint8_t dump_reglist[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0f, |