]> git.sur5r.net Git - openocd/commitdiff
Eliminate MixedCaps symbol from public JTAG TAP API:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 5 Jun 2009 00:42:52 +0000 (00:42 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 5 Jun 2009 00:42:52 +0000 (00:42 +0000)
- Purely mechanical transformations to the source files.
- Rename 'jtag_TapByString' as 'jtag_tap_by_string.'

git-svn-id: svn://svn.berlios.de/openocd/trunk@2065 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c
src/jtag/jtag.h
src/pld/virtex2.c
src/target/arm11.c
src/target/etb.c
src/xsvf/xsvf.c

index 33330a09adaed2095dbeef9bee772d966a3a5e4e..8695fb575daa59d6bb986a4ac1cb88b1be7c9846 100644 (file)
@@ -273,7 +273,7 @@ static void jtag_tap_add(struct jtag_tap_s *t)
        *tap = t;
 }
 
-jtag_tap_t *jtag_TapByString( const char *s )
+jtag_tap_t *jtag_tap_by_string( const char *s )
 {
        jtag_tap_t *t;
        char *cp;
@@ -310,7 +310,7 @@ jtag_tap_t * jtag_TapByJimObj( Jim_Interp *interp, Jim_Obj *o )
                cp = "(unknown)";
                t = NULL;
        }  else {
-               t = jtag_TapByString( cp );
+               t = jtag_tap_by_string( cp );
        }
        if( t == NULL ){
                Jim_SetResult_sprintf(interp,"Tap: %s is unknown", cp );
@@ -2326,7 +2326,7 @@ static int handle_irscan_command(struct command_context_s *cmd_ctx, char *cmd, c
 
        for (i = 0; i < num_fields; i++)
        {
-               tap = jtag_TapByString( args[i*2] );
+               tap = jtag_tap_by_string( args[i*2] );
                if (tap==NULL)
                {
                        command_print( cmd_ctx, "Tap: %s unknown", args[i*2] );
index d41115546cf245db6591f41ce7e8f2981c45dce8..0e2b28a98e971dc3730074dc15d90c8b6335ad8b 100644 (file)
@@ -178,7 +178,7 @@ struct jtag_tap_s
 extern jtag_tap_t* jtag_all_taps(void);
 extern const char *jtag_tap_name(const jtag_tap_t *tap);
 extern jtag_tap_t* jtag_tap_by_position(int n);
-extern jtag_tap_t* jtag_TapByString(const char* dotted_name);
+extern jtag_tap_t* jtag_tap_by_string(const char* dotted_name);
 extern jtag_tap_t* jtag_TapByJimObj(Jim_Interp* interp, Jim_Obj* obj);
 extern jtag_tap_t* jtag_tap_by_abs_position(int abs_position);
 extern int jtag_NumEnabledTaps(void);
index f8e13df602d430f59fbaa808ebf63dfd680b0fe7..821699ac95b34d1e8e9b3c42e438f19d6fe5aa4d 100644 (file)
@@ -247,7 +247,7 @@ int virtex2_pld_device_command(struct command_context_s *cmd_ctx, char *cmd, cha
                return ERROR_PLD_DEVICE_INVALID;
        }
 
-       tap = jtag_TapByString( args[1] );
+       tap = jtag_tap_by_string( args[1] );
        if( tap == NULL ){
                command_print( cmd_ctx, "Tap: %s does not exist", args[1] );
                return ERROR_OK;
index e4f53f1a7fc533e502efd7d5902e380c5b86e317..c55392f4097227bf6422997206a1e48ff9c336db 100644 (file)
@@ -1837,7 +1837,7 @@ arm11_common_t * arm11_find_target(const char * arg)
        jtag_tap_t *    tap;
        target_t *              t;
 
-       tap = jtag_TapByString(arg);
+       tap = jtag_tap_by_string(arg);
 
        if (!tap)
                return 0;
index d1c60a744777c33cadd3d8b55f320d0b0cb8168f..5791e578720b795f24ae10283abb4bafc6b5bfe8 100644 (file)
@@ -386,7 +386,7 @@ static int handle_etb_config_command(struct command_context_s *cmd_ctx, char *cm
                return ERROR_FAIL;
        }
 
-       tap = jtag_TapByString( args[1] );
+       tap = jtag_tap_by_string( args[1] );
        if (tap == NULL)
        {
                command_print(cmd_ctx, "Tap: %s does not exist", args[1] );
index f11ca6771c7f88906f48bf699149429013f248c6..4ede9fc94cddab567e405cf3a77d47dbbc592347 100644 (file)
@@ -232,7 +232,7 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha
 
        if (strcmp(args[0], "plain") != 0)
        {
-               tap = jtag_TapByString( args[0] );
+               tap = jtag_tap_by_string( args[0] );
                if (!tap )
                {
                        command_print( cmd_ctx, "Tap: %s unknown", args[0] );