esp32: follow idf meddlings

This commit is contained in:
Andy Green 2018-09-11 19:04:28 +08:00
parent d8cf6e72ee
commit ee250c0d83
10 changed files with 11 additions and 68 deletions

View File

@ -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)

View File

@ -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)
{

View File

@ -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>

View File

@ -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)

View File

@ -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)
{

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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