diff options
| author | bhgv <bhgv.empire@gmail.com> | 2020-05-17 16:46:23 +0300 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2020-05-17 16:46:23 +0300 |
| commit | 8d7c6b15fa5733a3070003520a1d869c0635ef82 (patch) | |
| tree | ee8196ddb1347909965e4ba8037e4d2468c94658 /libiot | |
| parent | 49064f41a2c731cbdfaf6605f32c9cfb7cc0dfd4 (diff) | |
sup. FreeRTOS riscV-64 (k210 cpu). 3rd step
Diffstat (limited to 'libiot')
| -rw-r--r-- | libiot/vfs/include/esp_vfs.h | 6 | ||||
| -rw-r--r-- | libiot/vfs/vfs.c | 2 | ||||
| -rw-r--r-- | libiot/vfs/vfs.h | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/libiot/vfs/include/esp_vfs.h b/libiot/vfs/include/esp_vfs.h index a0762d3..9e1136e 100644 --- a/libiot/vfs/include/esp_vfs.h +++ b/libiot/vfs/include/esp_vfs.h @@ -34,7 +34,7 @@ #include <string.h> //#include "sdkconfig.h" -#include "lwip/sockets.h" +//{} ??? #include "lwip/sockets.h" #ifdef __cplusplus extern "C" { @@ -193,10 +193,12 @@ typedef struct int (*ftruncate_p)(void* ctx, int fd, off_t length); int (*ftruncate)(int fd, off_t length); }; +#if 0 //{} union { int (*writev_p)(void* ctx, int fd, const struct iovec *iov, int iovcnt); int (*writev)(int fd, const struct iovec *iov, int iovcnt); }; +#endif //{} union { int (*select_p)(void* ctx, int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, struct timeval *timeout); int (*select)(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, struct timeval *timeout); @@ -415,7 +417,7 @@ void esp_vfs_select_triggered_isr(SemaphoreHandle_t *signal_sem, BaseType_t *wok * return value indicates a timed-out poll. -1 is return on failure and errno is set accordingly. * */ -int esp_vfs_poll(struct pollfd *fds, nfds_t nfds, int timeout); +//{} int esp_vfs_poll(struct pollfd *fds, nfds_t nfds, int timeout); #ifdef __cplusplus } // extern "C" diff --git a/libiot/vfs/vfs.c b/libiot/vfs/vfs.c index 2d40ee6..25bc385 100644 --- a/libiot/vfs/vfs.c +++ b/libiot/vfs/vfs.c @@ -263,6 +263,7 @@ ssize_t vfs_generic_write(vfs_fd_local_storage_t *local_storage, vfs_put_byte pu return bytes; } +#if 0 //{} ssize_t vfs_generic_writev(vfs_fd_local_storage_t *local_storage, vfs_put_byte put, int fd, const struct iovec *iov, int iovcnt) { int bytes = 0; int len = 0; @@ -284,6 +285,7 @@ ssize_t vfs_generic_writev(vfs_fd_local_storage_t *local_storage, vfs_put_byte p return bytes; } +#endif //{} int vfs_generic_select(vfs_fd_local_storage_t *local_storage, vfs_has_bytes has_bytes, vfs_free_bytes free_bytes, int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, struct timeval *timeout) { int to = 0xffffffff; // Default timeout diff --git a/libiot/vfs/vfs.h b/libiot/vfs/vfs.h index 4cea7c1..87fc29c 100644 --- a/libiot/vfs/vfs.h +++ b/libiot/vfs/vfs.h @@ -99,7 +99,7 @@ int vfs_fat_fsstat(const char *target, u32_t *total, u32_t *used); esp_vfs_t* vfs_spiffs_mount(const char *target); int vfs_spiffs_umount(const char *target); int vfs_spiffs_format(const char *target); -int vfs_spiffs_fsstat(const char *target, u32_t *total, u32_t *used); +//{} int vfs_spiffs_fsstat(const char *target, u32_t *total, u32_t *used); /* int vfs_lfs_mount(const char *target); |
