nrf: microcontroller: use port reset path

For `microcontroller.reset()`, don't manually call NVIC_SystemReset().
Instead, call the `port_reset()` in case the port wants to do any
cleanup.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-05-22 19:34:54 +08:00
parent c7efc94a33
commit 5edc29c6a5
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
void common_hal_mcu_reset(void) {
filesystem_flush();
NVIC_SystemReset();
reset_cpu();
}
// The singleton microcontroller.Processor object, bound to microcontroller.cpu