实现复位飞控进入isp模式,并擦除内存

This commit is contained in:
OPTOC
2025-10-14 10:23:37 +08:00
parent b59b115a3f
commit d96f0a1ee2
4 changed files with 78 additions and 3 deletions

View File

@@ -9,6 +9,8 @@
#include "ota_u.h"
#include "../../config/app_config.h"
#define FC_ADDRESS "0x08000000"
typedef struct
{
device_t device;
@@ -25,6 +27,7 @@ typedef struct
//STMISP协议
stmisp_device_t stmisp_device;
uint32_t fc_address;
}sertrf_t;
typedef struct
@@ -82,4 +85,8 @@ void pc_link_rgb_color(device_t* device);
* @brief 打印时间间隔
*/
void printf_chill_time(uint8_t chill_time, uint16_t type);
/**
* @brief 字符串转十进制
*/
uint32_t parse_hex_or_dec(const char *s);