mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
17 lines
437 B
C
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),
|