target: use unsigned int for timeout_ms
Change the prototype of functions: - target_run_algorithm() - target_wait_algorithm() - target_wait_state() - struct target_type::run_algorithm() - struct target_type::wait_algorithm() to use unsigned int for timeout_ms instead of int. Change accordingly the variables passed as parameter. Change-Id: I0b8d6e691bb3c749eeb2911dc5a86c38cc0cb65d Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7562 Tested-by: jenkins
This commit is contained in:
@@ -547,7 +547,7 @@ int target_run_algorithm(struct target *target,
|
||||
int num_mem_params, struct mem_param *mem_params,
|
||||
int num_reg_params, struct reg_param *reg_param,
|
||||
target_addr_t entry_point, target_addr_t exit_point,
|
||||
int timeout_ms, void *arch_info);
|
||||
unsigned int timeout_ms, void *arch_info);
|
||||
|
||||
/**
|
||||
* Starts an algorithm in the background on the @a target given.
|
||||
@@ -568,7 +568,7 @@ int target_start_algorithm(struct target *target,
|
||||
int target_wait_algorithm(struct target *target,
|
||||
int num_mem_params, struct mem_param *mem_params,
|
||||
int num_reg_params, struct reg_param *reg_params,
|
||||
target_addr_t exit_point, int timeout_ms,
|
||||
target_addr_t exit_point, unsigned int timeout_ms,
|
||||
void *arch_info);
|
||||
|
||||
/**
|
||||
@@ -660,7 +660,7 @@ int target_checksum_memory(struct target *target,
|
||||
int target_blank_check_memory(struct target *target,
|
||||
struct target_memory_check_block *blocks, int num_blocks,
|
||||
uint8_t erased_value);
|
||||
int target_wait_state(struct target *target, enum target_state state, int ms);
|
||||
int target_wait_state(struct target *target, enum target_state state, unsigned int ms);
|
||||
|
||||
/**
|
||||
* Obtain file-I/O information from target for GDB to do syscall.
|
||||
|
||||
Reference in New Issue
Block a user