feat(vfs): Disable VFS used by default

Console component must use VFS.
This commit is contained in:
dongheng
2019-04-17 19:48:07 +08:00
parent 904c402359
commit 2ad3067abd
3 changed files with 7 additions and 2 deletions

View File

@ -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 * re implement read/write/close/ioctl/fnctl to send the requested action to the right
* library (sharing select will need more work though). * library (sharing select will need more work though).
*/ */
#ifdef CONFIG_USING_ESP_VFS
#define LWIP_SOCKET_OFFSET (FD_SETSIZE - CONFIG_LWIP_MAX_SOCKETS) #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 * LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT

View File

@ -13,10 +13,11 @@
// limitations under the License. // limitations under the License.
#include <sys/select.h> #include <sys/select.h>
#include "esp_vfs.h"
#include "sdkconfig.h" #include "sdkconfig.h"
#ifdef CONFIG_USING_ESP_VFS #ifdef CONFIG_USING_ESP_VFS
#include "esp_vfs.h"
#ifdef CONFIG_USE_ONLY_LWIP_SELECT #ifdef CONFIG_USE_ONLY_LWIP_SELECT
#include "lwip/sockets.h" #include "lwip/sockets.h"

View File

@ -2,7 +2,7 @@ menu "Virtual file system"
config USING_ESP_VFS config USING_ESP_VFS
bool "Using espressif VFS" bool "Using espressif VFS"
default y default n
help help
Enable this option, espressif VFS can be used. Users can use APIs like "open", "read", "write" 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. and so on to operate I/O device which is registered.