summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-15 22:23:10 -0700
committerKeith Packard <keithp@keithp.com>2012-06-15 22:23:10 -0700
commitbaf1be1def01266512e67068948bf19b04ead6aa (patch)
treeb371027285d76a935cafcc385c79dfb5bdbdbc75
parentbfbd1d82f4c25120a97840a1bd4787680823afd8 (diff)
Allow product to override maximum number of command lists (NUM_CMDS)
Just in case some product wants to save memory, or have more. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/core/ao_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c
index 40bb476c..fbf0c347 100644
--- a/src/core/ao_cmd.c
+++ b/src/core/ao_cmd.c
@@ -258,7 +258,9 @@ version(void)
printf("software-version %s\n", ao_version);
}
+#ifndef NUM_CMDS
#define NUM_CMDS 11
+#endif
static __code struct ao_cmds *__xdata (ao_cmds[NUM_CMDS]);
static __pdata uint8_t ao_ncmds;