- 增加STM8 Bootloader工程及出厂固件恢复流程\n- 增加W25Q64外部Flash驱动和OTA分包接收、CRC16校验、断点续传状态管理\n- 增加固件版本查询、升级结果上报与主机确认机制\n- 将业务帧从55 AA帧头调整为发送方Mesh短地址+CMD+LEN+DATA+CRC16\n- 修正JDY-28M外层地址与业务发送方地址的职责划分,支持广播请求定向应答\n- 同步更新硬件引脚、存储分区、OTA流程和主机通信协议文档\n- 已使用SDCC重新编译,应用代码大小为5512字节,链接地址为0x8800
13 lines
517 B
C
13 lines
517 B
C
/** @file w25q64_app.h @brief 主程序侧W25Q64结果读取接口。 */
|
|
#ifndef W25Q64_APP_H
|
|
#define W25Q64_APP_H
|
|
#include <stdint.h>
|
|
void W25Q64App_Init(void);
|
|
uint8_t W25Q64App_ReadByte(uint32_t address, uint8_t *value);
|
|
uint8_t W25Q64App_Read(uint32_t address, uint8_t *buffer, uint16_t length);
|
|
uint8_t W25Q64App_EraseSector(uint32_t address);
|
|
uint8_t W25Q64App_PageProgram(uint32_t address, const uint8_t *data,
|
|
uint16_t length);
|
|
uint8_t W25Q64App_ClearUpgradeResult(void);
|
|
#endif
|