diff --git a/app/include/rom.h b/app/include/rom.h index 409d2bbe..0a39194e 100644 --- a/app/include/rom.h +++ b/app/include/rom.h @@ -149,4 +149,7 @@ void srand(unsigned int); void uart_div_modify(int no, unsigned int freq); +/* Returns 0 on success, 1 on failure */ +uint8_t SPIRead(uint32_t src_addr, uint32_t *des_addr, uint32_t size); + #endif diff --git a/app/platform/flash_api.h b/app/platform/flash_api.h index 20935b2f..32475361 100644 --- a/app/platform/flash_api.h +++ b/app/platform/flash_api.h @@ -86,8 +86,6 @@ typedef struct uint32_t segment_size; } ICACHE_STORE_TYPEDEF_ATTR SPIFlashInfo; -SpiFlashOpResult SPIRead(uint32_t src_addr, uint32_t *des_addr, uint32_t size); - uint32_t flash_detect_size_byte(void); uint32_t flash_safe_get_size_byte(void); uint16_t flash_safe_get_sec_num(void);