spi_flash: implement mmap/munmap

This commit is contained in:
Ivan Grokhotkov
2016-10-19 17:17:24 +08:00
parent 54ca573ce4
commit 42068c3b36
4 changed files with 275 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ typedef int32_t esp_err_t;
#define ESP_ERR_NO_MEM 0x101
#define ESP_ERR_INVALID_ARG 0x102
#define ESP_ERR_INVALID_STATE 0x103
#define ESP_ERR_INVALID_SIZE 0x104
#define ESP_ERR_NOT_FOUND 0x105
/**
* Macro which can be used to check the error code,