jtag: retire jtag_get_error()
This fn is an implementation detail of jtag_execute_queue() that is not to be exposed externally. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
parent
dcba070958
commit
2fbb0b5972
|
@ -52,9 +52,9 @@ static void jtag_add_scan_check(struct jtag_tap *active,
|
||||||
* when an error occurs during processing that should be reported during
|
* when an error occurs during processing that should be reported during
|
||||||
* jtag_execute_queue().
|
* jtag_execute_queue().
|
||||||
*
|
*
|
||||||
* Tts value may be checked with jtag_get_error() and cleared with
|
* The value is set and cleared, but never read by normal application code.
|
||||||
* jtag_error_clear(). This value is returned (and cleared) by
|
*
|
||||||
* jtag_execute_queue().
|
* This value is returned (and cleared) by jtag_execute_queue().
|
||||||
*/
|
*/
|
||||||
static int jtag_error = ERROR_OK;
|
static int jtag_error = ERROR_OK;
|
||||||
|
|
||||||
|
@ -131,10 +131,7 @@ void jtag_set_error(int error)
|
||||||
return;
|
return;
|
||||||
jtag_error = error;
|
jtag_error = error;
|
||||||
}
|
}
|
||||||
int jtag_get_error(void)
|
|
||||||
{
|
|
||||||
return jtag_error;
|
|
||||||
}
|
|
||||||
int jtag_error_clear(void)
|
int jtag_error_clear(void)
|
||||||
{
|
{
|
||||||
int temp = jtag_error;
|
int temp = jtag_error;
|
||||||
|
|
|
@ -661,8 +661,6 @@ void jtag_sleep(uint32_t us);
|
||||||
* called with a non-zero error code.
|
* called with a non-zero error code.
|
||||||
*/
|
*/
|
||||||
void jtag_set_error(int error);
|
void jtag_set_error(int error);
|
||||||
/// @returns The current value of jtag_error
|
|
||||||
int jtag_get_error(void);
|
|
||||||
/**
|
/**
|
||||||
* Resets jtag_error to ERROR_OK, returning its previous value.
|
* Resets jtag_error to ERROR_OK, returning its previous value.
|
||||||
* @returns The previous value of @c jtag_error.
|
* @returns The previous value of @c jtag_error.
|
||||||
|
|
Loading…
Reference in New Issue