Files
OpenCellular/include/lightbar_opcode_list.h
Eric Caruso 28891eaaab 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>
2014-10-01 01:47:39 +00:00

17 lines
437 B
C

/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* This defines a list of lightbar opcodes for programmable sequences.
*/
#define LIGHTBAR_OPCODE_TABLE \
OP(JUMP), \
OP(DELAY), \
OP(SET_BRIGHTNESS), \
OP(SET_COLOR), \
OP(SET_DELAY_TIME), \
OP(RAMP_ONCE), \
OP(CYCLE_ONCE), \
OP(CYCLE), \
OP(HALT),