From 2ec70dc812035bf3a2af2c1f024206e97d606d45 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Wed, 2 Nov 2016 01:41:51 +0300
Subject: [PATCH] esp8266/etshal.h: Add prototypes for
 SPIRead/SPIWrite/SPIEraseSector.

---
 esp8266/esp_init_data.c | 3 ---
 esp8266/etshal.h        | 4 ++++
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/esp8266/esp_init_data.c b/esp8266/esp_init_data.c
index b229f751d..b14de573a 100644
--- a/esp8266/esp_init_data.c
+++ b/esp8266/esp_init_data.c
@@ -31,9 +31,6 @@
 #include "user_interface.h"
 #include "extmod/misc.h"
 
-uint32_t SPIRead(uint32_t offset, void *buf, uint32_t len);
-uint32_t SPIWrite(uint32_t offset, const void *buf, uint32_t len);
-uint32_t SPIEraseSector(int sector);
 NORETURN void call_user_start(void);
 void ets_printf(const char *fmt, ...);
 extern char flashchip;
diff --git a/esp8266/etshal.h b/esp8266/etshal.h
index 8584ae4d1..28f977791 100644
--- a/esp8266/etshal.h
+++ b/esp8266/etshal.h
@@ -36,4 +36,8 @@ void *pvPortZalloc(unsigned sz, const char *fname, int line);
 void *pvPortRealloc(void *p, unsigned sz, const char *fname, int line);
 void vPortFree(void *p, const char *fname, int line);
 
+uint32_t SPIRead(uint32_t offset, void *buf, uint32_t len);
+uint32_t SPIWrite(uint32_t offset, const void *buf, uint32_t len);
+uint32_t SPIEraseSector(int sector);
+
 #endif // _INCLUDED_ETSHAL_H_
-- 
GitLab