static struct argp_option argp_options[] = {
{"debug", 'd', "level", 0, "Produce debugging output" },
{"iram", 'i', "size", 0, "Set internal ram size" },
+ {"pram", 'p', "size", 0, "Set program memory size" },
{"xram", 'x', "size", 0, "Set external ram size (default is 1024)" },
{ 0 }
};
char *endptr;
int *dest;
- if (memid == INT_MEM_ID)
+ if (memid == PGM_MEM_ID)
+ dest = &options.pram_size;
+ else if (memid == INT_MEM_ID)
dest = &options.iram_size;
else if (memid == EXT_MEM_ID)
dest = &options.xram_size;
case 'i':
decode_memory_size(arg, state, INT_MEM_ID);
break;
+ case 'p':
+ decode_memory_size(arg, state, PGM_MEM_ID);
+ break;
case 'x':
decode_memory_size(arg, state, EXT_MEM_ID);
break;
/* Setting default values. */
options.filename = NULL;
+ options.pram_size = PGM_MEM_DEFAULT_SIZE;
options.iram_size = INT_MEM_MAX_SIZE;
options.xram_size = EXT_MEM_DEFAULT_SIZE;