diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-02 01:41:51 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-02 02:16:20 +0300 |
commit | 2ec70dc812035bf3a2af2c1f024206e97d606d45 (patch) | |
tree | cbbd3286ff5edb9d5064ca9841988ec9c128ba43 | |
parent | ffb04a5845d2b24b99260d72ea8b99d9425ee1b4 (diff) | |
download | micropython-2ec70dc812035bf3a2af2c1f024206e97d606d45.tar.gz micropython-2ec70dc812035bf3a2af2c1f024206e97d606d45.zip |
esp8266/etshal.h: Add prototypes for SPIRead/SPIWrite/SPIEraseSector.
-rw-r--r-- | esp8266/esp_init_data.c | 3 | ||||
-rw-r--r-- | 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 b229f751da..b14de573a7 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 8584ae4d1d..28f9777919 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_ |