实现复位飞控进入isp模式,并擦除内存
This commit is contained in:
@@ -269,6 +269,17 @@ int resend_parse_data(resend_device_t *resend_device)
|
||||
break;
|
||||
case RESEND_CMD_OTA_END:
|
||||
break;
|
||||
case RESEND_CMD_FC_ISP_GET_PARAM:
|
||||
//针对ISP的应答
|
||||
resend_device->status.ack_flag = 0;
|
||||
break;
|
||||
case RESEND_CMD_FC_ISP_START:
|
||||
resend_device->handle_flag = RESEND_CMD_FC_ISP_GET_PARAM;
|
||||
break;
|
||||
case RESEND_CMD_FC_ISP_DATA:
|
||||
break;
|
||||
case RESEND_CMD_FC_ISP_END:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,12 @@ typedef enum
|
||||
RESEND_CMD_OTA_GET_PARAM = 0x010,
|
||||
RESEND_CMD_OTA_START = 0x011,
|
||||
RESEND_CMD_OTA_DATA = 0x012,
|
||||
RESEND_CMD_OTA_END = 0x013
|
||||
RESEND_CMD_OTA_END = 0x013,
|
||||
|
||||
RESEND_CMD_FC_ISP_GET_PARAM = 0x020,
|
||||
RESEND_CMD_FC_ISP_START = 0x021,
|
||||
RESEND_CMD_FC_ISP_DATA = 0x022,
|
||||
RESEND_CMD_FC_ISP_END = 0x023
|
||||
}resend_cmd_type_e;
|
||||
// 帧解析状态
|
||||
typedef enum
|
||||
|
||||
Reference in New Issue
Block a user