summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-05 00:42:25 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-05 00:42:25 +0000
commitdd89964ae00783b146084f4564fd151efa8eccdb (patch)
treebf6ce779fdbc6bb80db1c5e5e0d094c5bc69a0a9
parenteaf37cf9e8d1a9d41f5e6c09cb1fd0a52dc91bbb (diff)
downloadopenocd_libswd-dd89964ae00783b146084f4564fd151efa8eccdb.tar.gz
openocd_libswd-dd89964ae00783b146084f4564fd151efa8eccdb.tar.bz2
openocd_libswd-dd89964ae00783b146084f4564fd151efa8eccdb.tar.xz
openocd_libswd-dd89964ae00783b146084f4564fd151efa8eccdb.zip
Eliminate MixedCaps symbol from public JTAG TAP API:
- Purely mechanical transformations to the source files. - Rename 'jtag_AllTaps' as 'jtag_all_taps.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2062 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/jtag/jtag.c10
-rw-r--r--src/jtag/jtag.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index 8a710d0f..c934b9ba 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -236,7 +236,7 @@ static int handle_verify_ircapture_command(struct command_context_s *cmd_ctx, ch
static int handle_verify_jtag_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
static int handle_tms_sequence_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-jtag_tap_t *jtag_AllTaps(void)
+jtag_tap_t *jtag_all_taps(void)
{
return __jtag_all_taps;
};
@@ -252,7 +252,7 @@ int jtag_NumEnabledTaps(void)
int n;
n = 0;
- t = jtag_AllTaps();
+ t = jtag_all_taps();
while(t){
if( t->enabled ){
n++;
@@ -278,7 +278,7 @@ jtag_tap_t *jtag_TapByString( const char *s )
jtag_tap_t *t;
char *cp;
- t = jtag_AllTaps();
+ t = jtag_all_taps();
/* try name first */
while(t){
if( 0 == strcmp( t->dotted_name, s ) ){
@@ -325,7 +325,7 @@ jtag_tap_t * jtag_TapByAbsPosition( int n )
jtag_tap_t *t;
orig_n = n;
- t = jtag_AllTaps();
+ t = jtag_all_taps();
while( t && (n > 0)) {
n--;
@@ -1933,7 +1933,7 @@ static int handle_scan_chain_command(struct command_context_s *cmd_ctx, char *cm
{
jtag_tap_t *tap;
- tap = jtag_AllTaps();
+ tap = jtag_all_taps();
command_print(cmd_ctx, " TapName | Enabled | IdCode Expected IrLen IrCap IrMask Instr ");
command_print(cmd_ctx, "---|--------------------|---------|------------|------------|------|------|------|---------");
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index ab5b8f4d..d01201c9 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -175,7 +175,7 @@ struct jtag_tap_s
jtag_tap_t* next_tap;
};
-extern jtag_tap_t* jtag_AllTaps(void);
+extern jtag_tap_t* jtag_all_taps(void);
extern const char *jtag_tap_name(const jtag_tap_t *tap);
extern jtag_tap_t* jtag_TapByPosition(int n);
extern jtag_tap_t* jtag_TapByString(const char* dotted_name);
@@ -189,7 +189,7 @@ static __inline__ jtag_tap_t* jtag_NextEnabledTap(jtag_tap_t* p)
if (p == NULL)
{
/* start at the head of list */
- p = jtag_AllTaps();
+ p = jtag_all_taps();
}
else
{