1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-26 11:30:18 +02:00

mv the COMMAND define to command_line.c

This commit is contained in:
xiangfu 2009-04-30 06:12:38 +00:00
parent 346f1528d6
commit 5db3e003da
2 changed files with 4 additions and 5 deletions

View File

@ -27,10 +27,11 @@
#include "cmd.h" #include "cmd.h"
#include "config.h" #include "config.h"
#define COMMAND_NUM 31
#define MAX_ARGC 10 #define MAX_ARGC 10
#define MAX_ARGV_LENGTH 100 #define MAX_COMMAND_LENGTH 100
static int com_argc; static int com_argc;
static char com_argv[MAX_ARGC][MAX_ARGV_LENGTH]; static char com_argv[MAX_ARGC][MAX_COMMAND_LENGTH];
static const char COMMAND[][30]= static const char COMMAND[][30]=
{ {
@ -143,7 +144,7 @@ int command_interpret(char * com_buf)
} else { } else {
com_argv[i][j] = *buf; com_argv[i][j] = *buf;
j++; j++;
if (j > MAX_ARGV_LENGTH) { if (j > MAX_COMMAND_LENGTH) {
printf("\n Para is too long! About!"); printf("\n Para is too long! About!");
return 0; return 0;
} }

View File

@ -27,8 +27,6 @@
#define CODE_SIZE ( 4 * 1024 * 1024 ) #define CODE_SIZE ( 4 * 1024 * 1024 )
/* #define START_ADDR ( 0x80000000 + SDRAM_SIZE - CODE_SIZE ) */ /* #define START_ADDR ( 0x80000000 + SDRAM_SIZE - CODE_SIZE ) */
#define MAX_COMMAND_LENGTH 100
#define COMMAND_NUM 31
#define NAND_MAX_BLK_NUM 10000000 /* ((Hand.nand_pn / Hand.nand_ppb) + 1) */ #define NAND_MAX_BLK_NUM 10000000 /* ((Hand.nand_pn / Hand.nand_ppb) + 1) */
#define NAND_MAX_PAGE_NUM 1073740824 /*Hand.nand_pn */ #define NAND_MAX_PAGE_NUM 1073740824 /*Hand.nand_pn */
#define NAND_SECTION_NUM 23 #define NAND_SECTION_NUM 23