modify flash platform header

This commit is contained in:
ethan.du 2020-08-10 17:04:40 +08:00
parent 36ec98fbf5
commit 724edf244f
4 changed files with 8 additions and 118 deletions

View File

@ -16,46 +16,6 @@ extern "C" {
#define DOWNLOAD_FAILED 0X01
#define VERSION_BYTE_NUM 24
/**
* @brief name
*
* @param handle download_name的指针
* @return download_name的指针
*/
void * HAL_Download_Name_Set(void * handle);
/**
* @brief STM32F767 FLASH的information分区的信息变更以及擦除download分区
sector的内容先取出来然后擦除信息区sector
*
* @param name 使
* @return NULL
*/
void * HAL_Download_Init(_IN_ void * name);
/**
* @brief length的buf写入到FLASH中
*
* @param handle
* @param total_length
* @param buffer_read
* @param length
* @return 0-success -fail
*/
int HAL_Download_Write(_IN_ void * handle,_IN_ uint32_t total_length,_IN_ uint8_t *buffer_read,_IN_ uint32_t length);
/**
* @brief STM32F767 FLASH的information分区的下载标志置位成功
*
* @param handle
* @return 0-success -fail
*/
int HAL_Download_End(_IN_ void * handle);
/**
* @brief FLASH地址中写入一个字节的数据
*

View File

@ -7,44 +7,6 @@ extern "C" {
#include "uiot_import.h"
/**
* @brief name
*
* @param handle download_name的指针
* @return download_name的指针
*/
void * HAL_Download_Name_Set(void * handle);
/**
* @brief
*
* @param name
* @return
*/
void * HAL_Download_Init(_IN_ void * name);
/**
* @brief length的buffer_read的数据写入到FLASH中
*
* @param handle
* @param total_length
* @param buffer_read
* @param length
* @return
*/
int HAL_Download_Write(_IN_ void * handle,_IN_ uint32_t total_length,_IN_ char *buffer_read,_IN_ uint32_t length);
/**
* @brief STM32F767 FLASH的information分区的下载标志置位成功
*
* @param handle
* @return -1 0
*/
int HAL_Download_End(_IN_ void * handle);
#if defined(__cplusplus)
}
#endif

View File

@ -16,46 +16,6 @@ extern "C" {
#define DOWNLOAD_FAILED 0X01
#define VERSION_BYTE_NUM 24
/**
* @brief name
*
* @param handle download_name的指针
* @return download_name的指针
*/
void * HAL_Download_Name_Set(void * handle);
/**
* @brief STM32F767 FLASH的information分区的信息变更以及擦除download分区
sector的内容先取出来然后擦除信息区sector
*
* @param name 使
* @return NULL
*/
void * HAL_Download_Init(_IN_ void * name);
/**
* @brief length的buf写入到FLASH中
*
* @param handle
* @param total_length
* @param buffer_read
* @param length
* @return 0-success -fail
*/
int HAL_Download_Write(_IN_ void * handle,_IN_ uint32_t total_length,_IN_ uint8_t *buffer_read,_IN_ uint32_t length);
/**
* @brief STM32F767 FLASH的information分区的下载标志置位成功
*
* @param handle
* @return 0-success -fail
*/
int HAL_Download_End(_IN_ void * handle);
/**
* @brief FLASH地址中写入一个字节的数据
*

View File

@ -319,6 +319,14 @@ int32_t HAL_TCP_Write(_IN_ uintptr_t fd, _IN_ unsigned char *buf, _IN_ size_t le
*/
int32_t HAL_TCP_Read(_IN_ uintptr_t fd, _OU_ unsigned char *buf, _IN_ size_t len, _IN_ uint32_t timeout_ms);
/**
* @brief name
*
* @param handle download_name的指针
* @return download_name的指针
*/
void * HAL_Download_Name_Set(void * handle);
/**
* @brief
*