summaryrefslogtreecommitdiff
path: root/include/lightbar_opcode_list.h
diff options
context:
space:
mode:
authorEric Caruso <ejcaruso@chromium.org>2014-09-30 13:38:52 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-01 01:47:39 +0000
commit28891eaaab07e873ce5ff21006713ad4f8faf975 (patch)
tree856817f626ee3bde72f898f428ed2ada6ddc4277 /include/lightbar_opcode_list.h
parent85d2d1f503ae8ad43094672910130df18e4a7d13 (diff)
downloadchrome-ec-28891eaaab07e873ce5ff21006713ad4f8faf975.tar.gz
lightbar: treat HALT like a normal opcode
This removes the special casing around HALT. It saves us a string literal and some logic. In total, we gain about 50 bytes and a little cleanup for this. BUG=None BRANCH=ToT TEST=Tried a program that uses HALT (i.e. red-green-blink) in simulator and on hardware. Change-Id: Iffee1b559983fd1ecd385cc6b8967f72a6b968a0 Signed-off-by: Eric Caruso <ejcaruso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/220589 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/lightbar_opcode_list.h')
-rw-r--r--include/lightbar_opcode_list.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lightbar_opcode_list.h b/include/lightbar_opcode_list.h
index 523303eb60..83432c04e3 100644
--- a/include/lightbar_opcode_list.h
+++ b/include/lightbar_opcode_list.h
@@ -12,4 +12,5 @@
OP(SET_DELAY_TIME), \
OP(RAMP_ONCE), \
OP(CYCLE_ONCE), \
- OP(CYCLE),
+ OP(CYCLE), \
+ OP(HALT),