projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bfbd1d8
)
Allow product to override maximum number of command lists (NUM_CMDS)
author
Keith Packard
<keithp@keithp.com>
Sat, 16 Jun 2012 05:23:10 +0000
(22:23 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 16 Jun 2012 05:23:10 +0000
(22:23 -0700)
Just in case some product wants to save memory, or have more.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_cmd.c
patch
|
blob
|
history
diff --git
a/src/core/ao_cmd.c
b/src/core/ao_cmd.c
index 40bb476c3d10fb69279b53d1b378ae4232def4ae..fbf0c34778094ae08ec176525bc58d49318a2ec8 100644
(file)
--- 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;