ESP8266_RTOS_SDK  v1.4.0
esp_spiffs.h
1 /*
2  * ESPRSSIF MIT License
3  *
4  * Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
5  *
6  * Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
7  * it is free of charge, to any person obtaining a copy of this software and associated
8  * documentation files (the "Software"), to deal in the Software without restriction, including
9  * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished
11  * to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all copies or
14  * substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22  *
23  */
24 
25 #ifndef __ESP_SPIFFS_H__
26 #define __ESP_SPIFFS_H__
27 
28 #include "spiffs/spiffs.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
46  uint32 phys_size;
47  uint32 phys_addr;
50  uint32 log_block_size;
51  uint32 log_page_size;
53  uint32 fd_buf_size;
54  uint32 cache_buf_size;
55 };
56 
65 sint32 esp_spiffs_init(struct esp_spiffs_config *config);
66 
74 void esp_spiffs_deinit(uint8 format);
75 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* __ESP_SPIFFS_H__ */
uint32 phys_addr
Definition: esp_spiffs.h:47
sint32 esp_spiffs_init(struct esp_spiffs_config *config)
Initialize spiffs.
uint32 log_block_size
Definition: esp_spiffs.h:50
uint32 phys_erase_block
Definition: esp_spiffs.h:48
uint32 fd_buf_size
Definition: esp_spiffs.h:53
void esp_spiffs_deinit(uint8 format)
Deinitialize spiffs.
uint32 cache_buf_size
Definition: esp_spiffs.h:54
uint32 log_page_size
Definition: esp_spiffs.h:51
uint32 phys_size
Definition: esp_spiffs.h:46
Definition: esp_spiffs.h:45