From 8e11e895f52f89f0f69f19689db5bdb3f4612499 Mon Sep 17 00:00:00 2001 From: devsaurus Date: Thu, 28 Apr 2016 21:26:55 +0200 Subject: [PATCH] move SPIRead to rom.h --- app/include/rom.h | 3 +++ app/platform/flash_api.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) 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);