view target-utils/loadagent/cmdtab.c @ 57:10996c267de4

loadtools old buglet: off by 1 error in the max-arguments logic in cmd parsing
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 24 Jun 2013 05:24:19 +0000
parents 9b4c5ce3db8b
children cc1d2413991a
line wrap: on
line source

#include "cmdtab.h"

extern void cmd_blankchk();
extern void cmd_crc32();
extern void cmd_jump();
extern void cmd_r8();
extern void cmd_r16();
extern void cmd_r32();
extern void cmd_w8();
extern void cmd_w16();
extern void cmd_w32();

extern void cmd_baud_switch();
extern void cmd_memdump_human();
extern void cmd_memdump_machine();
extern void cmd_memload();

const struct cmdtab cmdtab[] = {
	{"DUMP", cmd_memdump_machine},
	{"ML", cmd_memload},
	{"baud", cmd_baud_switch},
	{"blankchk", cmd_blankchk},
	{"crc32", cmd_crc32},
	{"dump", cmd_memdump_human},
	{"jump", cmd_jump},
	{"r8", cmd_r8},
	{"r16", cmd_r16},
	{"r32", cmd_r32},
	{"w8", cmd_w8},
	{"w16", cmd_w16},
	{"w32", cmd_w32},
	{0, 0}
};