summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-05-26 13:09:14 +0800
committerChromeBot <chrome-bot@google.com>2013-05-28 12:53:54 -0700
commit83ea309f44806bf49ea2780a1882473f79e4b1e8 (patch)
tree267107c74fdbcf70d82e0516dd28c16e73fa7ab5 /board
parentdcc9d9d735c859836eb9490b9fd94da2979c6c90 (diff)
downloadchrome-ec-83ea309f44806bf49ea2780a1882473f79e4b1e8.tar.gz
Add assertion support to emulator
This enables ASSERT() for easier debugging. BUG=chrome-os-partner:19235 TEST=Add ASSERT(0) in lid_sw test and see error message: ASSERTION FAIL: test/lid_sw.c:91:run_test - 0 BRANCH=None Change-Id: I7df7d5984e5d787fdc5ad2b6b24fec669e95c97e Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/56691 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/host/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/host/board.h b/board/host/board.h
index 4e4c4e7080..553f55c76c 100644
--- a/board/host/board.h
+++ b/board/host/board.h
@@ -8,6 +8,11 @@
#ifndef __BOARD_H
#define __BOARD_H
+/* Assertion support */
+#define CONFIG_DEBUG
+#define CONFIG_ASSERT_HELP
+
+/* Optional features */
#define CONFIG_HOSTCMD
#define CONFIG_HOST_EMU
#define CONFIG_KEYBOARD_PROTOCOL_MKBP