summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-05-25 13:17:21 -0700
committerRandall Spangler <rspangler@chromium.org>2012-05-25 13:34:06 -0700
commite704c712ad473160e97717f139ab3929bcd249c1 (patch)
tree1b87c7ad05a1e97bd04326adc7f6b6239407b10e /include/common.h
parent89e1d5a1219c87d90e1362716f799b16aad5c921 (diff)
downloadchrome-ec-e704c712ad473160e97717f139ab3929bcd249c1.tar.gz
Better help for console commands
Additional help messages and usage are gated by CONFIG_CONSOLE_CMDHELP, so we can turn it on if there's space (adds about 3KB to image size) and turn it off when there isn't. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=manual 1) help 2) help list 3) help gpioset 4) gpioset -> wrong number of params 5) gpioset fred 0 -> param1 bad 6) gpioset cpu_prochot fred -> param2 bad Change-Id: Ibe99f37212020f763ebe65a068e6aa83a809a370
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 291b950e48..91a1a126a1 100644
--- a/include/common.h
+++ b/include/common.h
@@ -35,6 +35,17 @@ enum ec_error_list {
EC_ERROR_INVAL = 5,
/* Already in use */
EC_ERROR_BUSY = 6,
+ /* Invalid console command param (PARAMn means parameter n is bad) */
+ EC_ERROR_PARAM1 = 11,
+ EC_ERROR_PARAM2 = 12,
+ EC_ERROR_PARAM3 = 13,
+ EC_ERROR_PARAM4 = 14,
+ EC_ERROR_PARAM5 = 15,
+ EC_ERROR_PARAM6 = 16,
+ EC_ERROR_PARAM7 = 17,
+ EC_ERROR_PARAM8 = 18,
+ EC_ERROR_PARAM9 = 19,
+ EC_ERROR_PARAM_COUNT = 20, /* Wrong number of params */
/* Module-internal error codes may use this range. */
EC_ERROR_INTERNAL_FIRST = 0x10000,