From e318f884bf1f0f7e1483b60f9befc94423b01bbd Mon Sep 17 00:00:00 2001 From: Stoyan Shopov Date: Thu, 3 Dec 2020 22:14:03 +0200 Subject: [PATCH] Change the type of 'cortexm_wait_timeout' to unsigned. It makes sense that the timeout value is unsigned, it also resolves build errors on some platforms. --- src/command.c | 2 +- src/target/cortexm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.c b/src/command.c index 032023d0..c935f774 100644 --- a/src/command.c +++ b/src/command.c @@ -96,7 +96,7 @@ bool connect_assert_srst; #if defined(PLATFORM_HAS_DEBUG) && (PC_HOSTED == 0) bool debug_bmp; #endif -long cortexm_wait_timeout = 2000; /* Timeout to wait for Cortex to react on halt command. */ +unsigned cortexm_wait_timeout = 2000; /* Timeout to wait for Cortex to react on halt command. */ int command_process(target *t, char *cmd) { diff --git a/src/target/cortexm.h b/src/target/cortexm.h index 82087859..812a683e 100644 --- a/src/target/cortexm.h +++ b/src/target/cortexm.h @@ -22,7 +22,7 @@ #include "target.h" #include "adiv5.h" -extern long cortexm_wait_timeout; +extern unsigned cortexm_wait_timeout; /* Private peripheral bus base address */ #define CORTEXM_PPB_BASE 0xE0000000