static error_t target_flash_uninit(void) { // Resume the target if configured to do so if (config_get_auto_rst()) { target_set_state(RESET_RUN); } swd_off(); return ERROR_SUCCESS; }
static error_t target_flash_uninit(void) { if (config_get_auto_rst()) { // Resume the target if configured to do so target_set_state(RESET_RUN); } else { // Leave the target halted until a reset occurs target_set_state(RESET_PROGRAM); } swd_off(); return ERROR_SUCCESS; }