Fix warning about unused variable in adiv5.c
This happens if the platform has debugging support but debugging is not enabled.
This commit is contained in:
parent
711a87f7ba
commit
4b8c4990dc
|
@ -334,7 +334,7 @@ static bool cortexm_prepare(ADIv5_AP_t *ap)
|
|||
uint32_t dhcsr_ctl = CORTEXM_DHCSR_DBGKEY | CORTEXM_DHCSR_C_DEBUGEN |
|
||||
CORTEXM_DHCSR_C_HALT;
|
||||
uint32_t dhcsr_valid = CORTEXM_DHCSR_S_HALT | CORTEXM_DHCSR_C_DEBUGEN;
|
||||
#ifdef PLATFORM_HAS_DEBUG
|
||||
#if defined(ENABLE_DEBUG) && defined(PLATFORM_HAS_DEBUG)
|
||||
uint32_t start_time = platform_time_ms();
|
||||
#endif
|
||||
uint32_t dhcsr;
|
||||
|
|
Loading…
Reference in New Issue