fix(DAP) reset not working when FREERTOS FREQ < 500
This commit is contained in:
parent
e547a83938
commit
86a8804cca
|
@ -969,6 +969,7 @@ __STATIC_INLINE void DAP_SETUP(void)
|
||||||
PORT_OFF();
|
PORT_OFF();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* minimum 1 tick delay */
|
||||||
extern void dap_os_delay(int ms);
|
extern void dap_os_delay(int ms);
|
||||||
/** Reset Target Device with custom specific I/O pin or command sequence.
|
/** Reset Target Device with custom specific I/O pin or command sequence.
|
||||||
This function allows the optional implementation of a device specific reset sequence.
|
This function allows the optional implementation of a device specific reset sequence.
|
||||||
|
|
|
@ -1846,8 +1846,11 @@ void DAP_Setup(void) {
|
||||||
DAP_SETUP(); // Device specific setup
|
DAP_SETUP(); // Device specific setup
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void dap_os_delay(int ms)
|
void dap_os_delay(int ms)
|
||||||
{
|
{
|
||||||
vTaskDelay(pdMS_TO_TICKS(ms));
|
if (CONFIG_FREERTOS_HZ >= 1000) {
|
||||||
|
vTaskDelay(pdMS_TO_TICKS(ms));
|
||||||
|
} else {
|
||||||
|
vTaskDelay(pdMS_TO_TICKS(ms) + 1);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue