riscv-openocd
riscv-openocd copied to clipboard
add callback for target reset
In this MR on_reset
callback function added to inform upper layers when reset happened.
Reset can be triggered by user request or in an unexpected time. Before displaying an "unexpected reset" warning message, target state checked to inform users correctly.
Change-Id: Ife0244f31db06a93a264e797501d5266243364cd Signed-off-by: Erhan Kurubas [email protected]
Hi @JanMatCodasip, is this PR OK for you? Anything from my side? @timsifive can you also please have a look?
What exactly is the use case for this? Why does the FreeRTOS layer need to be told when a reset happens?
I share Jan's concern that this is only useful to people modifying the OpenOCD source code, and generally people shouldn't need to do that.
Inactive.