mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-08 06:58:02 +08:00
feat(vfs): Disable VFS used by default
Console component must use VFS.
This commit is contained in:
components
@ -1425,7 +1425,11 @@ size_t memp_malloc_get_size(size_t type);
|
||||
* re implement read/write/close/ioctl/fnctl to send the requested action to the right
|
||||
* library (sharing select will need more work though).
|
||||
*/
|
||||
#ifdef CONFIG_USING_ESP_VFS
|
||||
#define LWIP_SOCKET_OFFSET (FD_SETSIZE - CONFIG_LWIP_MAX_SOCKETS)
|
||||
#else
|
||||
#define LWIP_SOCKET_OFFSET 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT
|
||||
|
@ -13,10 +13,11 @@
|
||||
// limitations under the License.
|
||||
|
||||
#include <sys/select.h>
|
||||
#include "esp_vfs.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifdef CONFIG_USING_ESP_VFS
|
||||
#include "esp_vfs.h"
|
||||
|
||||
#ifdef CONFIG_USE_ONLY_LWIP_SELECT
|
||||
#include "lwip/sockets.h"
|
||||
|
||||
|
@ -2,7 +2,7 @@ menu "Virtual file system"
|
||||
|
||||
config USING_ESP_VFS
|
||||
bool "Using espressif VFS"
|
||||
default y
|
||||
default n
|
||||
help
|
||||
Enable this option, espressif VFS can be used. Users can use APIs like "open", "read", "write"
|
||||
and so on to operate I/O device which is registered.
|
||||
|
Reference in New Issue
Block a user