X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Finterface.h;h=05e4048b1d3f06f86359745e902392013ee060e2;hb=4088b1e622cff0673f2859de5ee611da736bdba7;hp=83ff6fa4fb940a2e4e76a0612181a6aa5662936c;hpb=41018ff44b5393137c6bd41701d9c72780a65a0a;p=openocd.git diff --git a/src/jtag/interface.h b/src/jtag/interface.h index 83ff6fa4fb..05e4048b1d 100644 --- a/src/jtag/interface.h +++ b/src/jtag/interface.h @@ -59,7 +59,7 @@ void tap_set_state_impl(tap_state_t new_state); #if defined(_DEBUG_JTAG_IO_) #define tap_set_state(new_state) \ do { \ - LOG_DEBUG( "tap_set_state(%s)", tap_state_name(new_state) ); \ + LOG_DEBUG("tap_set_state(%s)", tap_state_name(new_state)); \ tap_set_state_impl(new_state); \ } while (0) #else @@ -160,9 +160,6 @@ bool tap_is_state_stable(tap_state_t astate); */ tap_state_t tap_state_transition(tap_state_t current_state, bool tms); -/// Provides user-friendly name lookup of TAP states. -tap_state_t tap_state_by_name(const char *name); - /// Allow switching between old and new TMS tables. @see tap_get_tms_path void tap_use_new_tms_table(bool use_new); /// @returns True if new TMS table is active; false otherwise. @@ -187,8 +184,7 @@ static inline tap_state_t jtag_debug_state_machine(const void *tms_buf, } #endif // _DEBUG_JTAG_IO_ -typedef struct jtag_interface_s -{ +struct jtag_interface { /// The name of the JTAG interface driver. char* name; @@ -211,7 +207,7 @@ typedef struct jtag_interface_s * @param cmd_ctx The context in which commands should be registered. * @returns ERROR_OK on success, or an error code on failure. */ - int (*register_commands)(struct command_context_s* cmd_ctx); + int (*register_commands)(struct command_context* cmd_ctx); /** * Interface driver must initalize any resources and connect to a @@ -228,7 +224,7 @@ typedef struct jtag_interface_s int (*quit)(void); /** - * Returns JTAG maxium speed for KHz. 0=RTCK. The function returns + * Returns JTAG maxium speed for KHz. 0 = RTCK. The function returns * a failure if it can't support the KHz/RTCK. * * WARNING!!!! if RTCK is *slow* then think carefully about @@ -274,7 +270,7 @@ typedef struct jtag_interface_s * @returns ERROR_OK on success, or an error code on failure. */ int (*srst_asserted)(int* srst_asserted); -} jtag_interface_t; +}; #endif // OPENOCD_JTAG_INTERFACE_H