Optimize functions related to flash operation
This commit is contained in:
@@ -30,8 +30,8 @@ typedef struct
|
||||
void (*flash_deinit)(void);
|
||||
|
||||
/* flash operation */
|
||||
status_t (*op_flash_erase)(uint32_t start_addr, uint32_t byte_cnt);
|
||||
status_t (*op_flash_write)(uint32_t start_addr, uint8_t *buf, uint32_t byte_cnt);
|
||||
status_t (*op_flash_erase)(uint32_t start_addr, uint32_t imageSize);
|
||||
status_t (*op_flash_write)(uint32_t WriteAddr, uint8_t *pBuffer, uint32_t NumByteToWrite);
|
||||
status_t (*op_flash_read)(uint32_t addr, uint8_t *buf, uint32_t len);
|
||||
status_t (*op_flash_copy)(uint32_t srcAddr,uint32_t dstAddr, uint32_t imageSize);
|
||||
|
||||
|
||||
@@ -39,11 +39,6 @@ static void BackupVersion(void);
|
||||
static void BootLoaderJumpApp(void);
|
||||
static status_t UpdateOTAFlag(ota_info_t *ptr);
|
||||
|
||||
#ifdef MCUBOOT_APPLICATION
|
||||
static void app_ota(void);
|
||||
#endif
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
@@ -54,10 +49,10 @@ static const mcuboot_t mcuboot =
|
||||
Serial_PutString,
|
||||
FLASH_Init,
|
||||
FLASH_DeInit,
|
||||
flash_erase,
|
||||
flash_write,
|
||||
flash_read,
|
||||
flash_copy,
|
||||
Flash_Erase,
|
||||
Flash_Write,
|
||||
Flash_Read,
|
||||
Flash_Copy,
|
||||
SerialDownload,
|
||||
mcuboot_reset,
|
||||
mcuboot_jump,
|
||||
|
||||
Reference in New Issue
Block a user