mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
esp32: follow idf meddlings
This commit is contained in:
parent
d8cf6e72ee
commit
ee250c0d83
10 changed files with 11 additions and 68 deletions
|
@ -20,14 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
|
||||
void
|
||||
lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi)
|
||||
|
|
|
@ -20,14 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
int lws_plat_apply_FD_CLOEXEC(int n)
|
||||
{
|
||||
|
|
|
@ -20,14 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
#include "misc/romfs.h"
|
||||
#include <esp_ota_ops.h>
|
||||
|
|
|
@ -20,15 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
|
||||
int
|
||||
lws_plat_context_early_init(void)
|
||||
|
|
|
@ -20,14 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
unsigned long long time_in_microseconds(void)
|
||||
{
|
||||
|
|
|
@ -20,15 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
|
||||
int
|
||||
lws_plat_pipe_create(struct lws *wsi)
|
||||
|
|
|
@ -20,14 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
int
|
||||
lws_plat_service(struct lws_context *context, int timeout_ms)
|
||||
|
|
|
@ -20,14 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "core/private.h"
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
|
||||
#include "apps/sntp/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
int
|
||||
lws_send_pipe_choked(struct lws *wsi)
|
||||
|
|
|
@ -39,6 +39,15 @@
|
|||
#include <signal.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include "freertos/timers.h"
|
||||
#include <esp_attr.h>
|
||||
#include <esp_system.h>
|
||||
#include <esp_task_wdt.h>
|
||||
|
||||
#include "lwip/apps/sntp.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
|
||||
#if defined(LWS_BUILTIN_GETIFADDRS)
|
||||
#include "./misc/getifaddrs.h"
|
||||
#endif
|
||||
|
|
|
@ -98,14 +98,14 @@ lws_flash_ota: $(LWS_BUILD_PATH)/pack.img
|
|||
--chip esp32 \
|
||||
--port $(ESPPORT) \
|
||||
--baud $(CONFIG_ESPTOOLPY_BAUD) \
|
||||
write_flash 0x110000 $(LWS_BUILD_PATH)/$(PROJECT_NAME).bin
|
||||
write_flash 0x120000 $(LWS_BUILD_PATH)/$(PROJECT_NAME).bin
|
||||
|
||||
lws_erase_ota:
|
||||
$(IDF_PATH)/components/esptool_py/esptool/esptool.py \
|
||||
--chip esp32 \
|
||||
--port $(ESPPORT) \
|
||||
--baud $(CONFIG_ESPTOOLPY_BAUD) \
|
||||
erase_region 0x110000 0x2f0000
|
||||
erase_region 0x120000 0x2e0000
|
||||
|
||||
|
||||
export A
|
||||
|
|
Loading…
Add table
Reference in a new issue