feat(lwip): Add socket UDP sync function

This commit is contained in:
Dong Heng
2018-07-26 14:28:33 +08:00
parent 8af3aa5ccf
commit cf46ba82be
7 changed files with 277 additions and 0 deletions

View File

@ -52,6 +52,10 @@
#define ESP_LWIP 1
#ifdef CONFIG_ESP_UDP_SYNC_SEND
#define ESP_UDP 1
#endif
#ifdef CONFIG_LWIP_SOCKET_MULTITHREAD
#define SOCKETS_MT
#endif
@ -2213,4 +2217,12 @@ void *memp_malloc_ll(size_t type);
* @}
*/
#if ESP_UDP
#if !LWIP_UDP || !LWIP_SOCKET || !ESP_LWIP
#error "LWIP_UDP & LWIP_SOCKET & ESP_LWIP must be enable"
#else
#include "udp_sync.h"
#endif
#endif
#endif /* __LWIP_HDR_LWIPOPTS_H__ */