uint8_t target_set_state(TARGET_RESET_STATE state) { // THIS SHOULD BE IMPLEMENTED IN MAIN FOR ALL TARGETS // uint32_t count=0; // //Check for 5 Second emergency erase routine // while(0 == gpio_get_sw_reset()){ // os_dly_wait(1); // count++; // gpio_set_hid_led((gpio_led_state_t)(count>>4&1));//Blink every 160ms // if(count>500){ // nrf_Emergency_Erase(); // return swd_set_target_state(state); // } // } // gpio_set_hid_led(GPIO_LED_ON); return swd_set_target_state_sw(state); }
uint8_t nrf51_target_set_state(TARGET_RESET_STATE state) { return swd_set_target_state_sw(state); }
uint8_t stm32f031_target_set_state(TARGET_RESET_STATE state) { return swd_set_target_state_sw(state); }
uint8_t target_set_state(TARGET_RESET_STATE state) { target_set_state_by_board(state); return swd_set_target_state_sw(state); }