Allow product to override maximum number of command lists (NUM_CMDS)
authorKeith Packard <keithp@keithp.com>
Sat, 16 Jun 2012 05:23:10 +0000 (22:23 -0700)
committerKeith 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

index 40bb476c3d10fb69279b53d1b378ae4232def4ae..fbf0c34778094ae08ec176525bc58d49318a2ec8 100644 (file)
@@ -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;