From: zwelch Date: Fri, 5 Jun 2009 00:42:39 +0000 (+0000) Subject: Eliminate MixedCaps symbol from public JTAG TAP API: X-Git-Tag: v0.2.0~446 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=473dc89c24f3c17c04dcafbf9b5c79d73a35ffe4;p=openocd Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_TapByAbsPosition' as 'jtag_tap_by_abs_position.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2064 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c index 2ab92d98..1ca7360c 100644 --- a/src/flash/str9xpec.c +++ b/src/flash/str9xpec.c @@ -325,7 +325,7 @@ static int str9xpec_flash_bank_command(struct command_context_s *cmd_ctx, char * arm7_9 = armv4_5->arch_info; jtag_info = &arm7_9->jtag_info; - str9xpec_info->tap = jtag_TapByAbsPosition( jtag_info->tap->abs_chain_position - 1); + str9xpec_info->tap = jtag_tap_by_abs_position( jtag_info->tap->abs_chain_position - 1); str9xpec_info->isc_enable = 0; str9xpec_build_block_list(bank); diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index c934b9ba..33330a09 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -294,7 +294,7 @@ jtag_tap_t *jtag_TapByString( const char *s ) n = strtol( s, &cp, 0 ); if( (s != cp) && (*cp == 0) ){ /* Then it is... */ - t = jtag_TapByAbsPosition(n); + t = jtag_tap_by_abs_position(n); } } return t; @@ -319,7 +319,7 @@ jtag_tap_t * jtag_TapByJimObj( Jim_Interp *interp, Jim_Obj *o ) } /* returns a pointer to the n-th device in the scan chain */ -jtag_tap_t * jtag_TapByAbsPosition( int n ) +jtag_tap_t * jtag_tap_by_abs_position( int n ) { int orig_n; jtag_tap_t *t; diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index aff2dff1..d4111554 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -180,7 +180,7 @@ 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_TapByJimObj(Jim_Interp* interp, Jim_Obj* obj); -extern jtag_tap_t* jtag_TapByAbsPosition(int abs_position); +extern jtag_tap_t* jtag_tap_by_abs_position(int abs_position); extern int jtag_NumEnabledTaps(void); extern int jtag_NumTotalTaps(void);