Skip to content
Snippets Groups Projects
Commit 2ec70dc8 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/etshal.h: Add prototypes for SPIRead/SPIWrite/SPIEraseSector.

parent ffb04a58
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,6 @@ ...@@ -31,9 +31,6 @@
#include "user_interface.h" #include "user_interface.h"
#include "extmod/misc.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); NORETURN void call_user_start(void);
void ets_printf(const char *fmt, ...); void ets_printf(const char *fmt, ...);
extern char flashchip; extern char flashchip;
......
...@@ -36,4 +36,8 @@ void *pvPortZalloc(unsigned sz, const char *fname, int line); ...@@ -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 *pvPortRealloc(void *p, unsigned sz, const char *fname, int line);
void vPortFree(void *p, 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_ #endif // _INCLUDED_ETSHAL_H_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment