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.
This commit is contained in:
Stoyan Shopov 2020-12-03 22:14:03 +02:00 committed by UweBonnes
parent c9a419e44b
commit e318f884bf
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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