2003-06-03 Marcel Telka <marcel@telka.sk>

* include/Makefile.am (noinst_HEADERS): Added cmd.h.
	* include/cmd.h: New file.
	* src/cmd/Makefile.am (libcmd_a_SOURCES): Removed cmd.h.
	* src/cmd/cmd.h: File removed. Partially moved to include module (file brux/cmd.h).

	* src/cmd/detectflash.c (cmd_detectflash_help): Changed help text.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@464 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent cf3224cd19
commit 7bce9968e1

@ -1,3 +1,12 @@
2003-06-03 Marcel Telka <marcel@telka.sk>
* include/Makefile.am (noinst_HEADERS): Added cmd.h.
* include/cmd.h: New file.
* src/cmd/Makefile.am (libcmd_a_SOURCES): Removed cmd.h.
* src/cmd/cmd.h: File removed. Partially moved to include module (file brux/cmd.h).
* src/cmd/detectflash.c (cmd_detectflash_help): Changed help text.
2003-06-03 Marcel Telka <marcel@telka.sk>
* src/readmem.c (detectflash): Function extracted to module libbrux, file flash/detectflash.c.

@ -30,6 +30,7 @@ noinst_HEADERS = \
cfi.h \
chain.h \
data_register.h \
cmd.h \
flash.h \
gettext.h \
instruction.h \

@ -25,16 +25,8 @@
#ifndef CMD_H
#define CMD_H
typedef struct {
char *name;
char *desc;
void (*help)( void );
int (*run)( char *params[] );
} cmd_t;
#include <brux/cmd.h>
int cmd_run( char *params[] );
int cmd_params( char *params[] );
int cmd_get_number( char *s, unsigned int *i );
int cmd_test_cable( void );
#endif /* CMD_H */

@ -26,7 +26,6 @@ include $(top_srcdir)/Makefile.rules
noinst_LIBRARIES = libcmd.a
libcmd_a_SOURCES = \
cmd.h \
quit.c \
help.c \
frequency.c \

@ -26,7 +26,7 @@
#include <stdio.h>
#include "jtag.h"
#include <brux/flash.h>
#include "cmd.h"
@ -51,10 +51,7 @@ cmd_detectflash_help( void )
{
printf( _(
"Usage: %s\n"
"Detect flash memory type connected to part.\n"
"\n"
"Only detects flash connected to part 0. Part 0 must support\n"
"bus operations.\n"
"Detect flash memory type connected to a part.\n"
), "detectflash" );
}

Loading…
Cancel
Save