From 8ae5be565996cd5ca3bd4f5e95dd77fe07faad7c Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Tue, 3 Nov 2020 11:12:53 +0200 Subject: [PATCH] Add esp-rainmaker support for ESP32 --- platform.txt | 4 +- tools/platformio-build-esp32.py | 10 +- .../button/button/include/iot_button.h | 272 +++++++ tools/sdk/esp32/include/config/sdkconfig.h | 19 + .../include/esp_rmaker_console.h | 52 ++ .../esp_rainmaker/include/esp_rmaker_core.h | 706 ++++++++++++++++++ .../esp_rainmaker/include/esp_rmaker_mqtt.h | 108 +++ .../esp_rainmaker/include/esp_rmaker_ota.h | 150 ++++ .../include/esp_rmaker_schedule.h | 36 + .../include/esp_rmaker_standard_devices.h | 96 +++ .../include/esp_rmaker_standard_params.h | 265 +++++++ .../include/esp_rmaker_standard_services.h | 76 ++ .../include/esp_rmaker_standard_types.h | 64 ++ .../include/esp_rmaker_user_mapping.h | 64 ++ .../esp_rainmaker/include/esp_rmaker_utils.h | 174 +++++ .../esp_schedule/include/esp_schedule.h | 225 ++++++ .../include/json_generator/json_generator.h | 485 ++++++++++++ .../json_parser/jsmn/include/jsmn-changed.h | 110 +++ .../esp32/include/json_parser/json_parser.h | 61 ++ .../sdk/esp32/include/qrcode/include/qrcode.h | 40 + .../sdk/esp32/include/ws2812_led/led_strip.h | 126 ++++ .../sdk/esp32/include/ws2812_led/ws2812_led.h | 44 ++ tools/sdk/esp32/lib/libapp_trace.a | Bin 118684 -> 118684 bytes tools/sdk/esp32/lib/libapp_update.a | Bin 138230 -> 138230 bytes tools/sdk/esp32/lib/libasio.a | Bin 2914432 -> 2914432 bytes tools/sdk/esp32/lib/libbootloader_support.a | Bin 689564 -> 689564 bytes tools/sdk/esp32/lib/libbt.a | Bin 20886138 -> 20886138 bytes tools/sdk/esp32/lib/libbutton.a | Bin 0 -> 109882 bytes tools/sdk/esp32/lib/libcbor.a | Bin 512282 -> 512282 bytes tools/sdk/esp32/lib/libcmock.a | Bin 29200 -> 29200 bytes tools/sdk/esp32/lib/libcoap.a | Bin 1689082 -> 1689082 bytes tools/sdk/esp32/lib/libconsole.a | Bin 556772 -> 556772 bytes tools/sdk/esp32/lib/libcxx.a | Bin 61682 -> 61682 bytes tools/sdk/esp32/lib/libdriver.a | Bin 4646258 -> 4646258 bytes tools/sdk/esp32/lib/libefuse.a | Bin 231636 -> 231636 bytes tools/sdk/esp32/lib/libesp-face.a | Bin 988738 -> 988738 bytes tools/sdk/esp32/lib/libesp-tls.a | Bin 232372 -> 232372 bytes tools/sdk/esp32/lib/libesp32-camera.a | Bin 1445760 -> 1446248 bytes tools/sdk/esp32/lib/libesp32.a | Bin 699926 -> 699926 bytes tools/sdk/esp32/lib/libesp_adc_cal.a | Bin 54630 -> 54630 bytes tools/sdk/esp32/lib/libesp_common.a | Bin 429670 -> 429670 bytes tools/sdk/esp32/lib/libesp_eth.a | Bin 1325300 -> 1325300 bytes tools/sdk/esp32/lib/libesp_event.a | Bin 407656 -> 407656 bytes tools/sdk/esp32/lib/libesp_gdbstub.a | Bin 123474 -> 123474 bytes tools/sdk/esp32/lib/libesp_hid.a | Bin 619850 -> 619850 bytes tools/sdk/esp32/lib/libesp_http_client.a | Bin 346080 -> 346080 bytes tools/sdk/esp32/lib/libesp_http_server.a | Bin 496152 -> 496152 bytes tools/sdk/esp32/lib/libesp_https_ota.a | Bin 79296 -> 79296 bytes tools/sdk/esp32/lib/libesp_ipc.a | Bin 35256 -> 35256 bytes tools/sdk/esp32/lib/libesp_littlefs.a | Bin 753442 -> 753442 bytes tools/sdk/esp32/lib/libesp_local_ctrl.a | Bin 266228 -> 266228 bytes tools/sdk/esp32/lib/libesp_netif.a | Bin 801238 -> 801238 bytes tools/sdk/esp32/lib/libesp_pm.a | Bin 183010 -> 183010 bytes tools/sdk/esp32/lib/libesp_rainmaker.a | Bin 0 -> 1922374 bytes tools/sdk/esp32/lib/libesp_ringbuf.a | Bin 167462 -> 167462 bytes tools/sdk/esp32/lib/libesp_rom.a | Bin 36798 -> 36798 bytes tools/sdk/esp32/lib/libesp_schedule.a | Bin 0 -> 125074 bytes .../sdk/esp32/lib/libesp_serial_slave_link.a | Bin 247818 -> 247818 bytes tools/sdk/esp32/lib/libesp_system.a | Bin 1018892 -> 1018892 bytes tools/sdk/esp32/lib/libesp_timer.a | Bin 174876 -> 174876 bytes tools/sdk/esp32/lib/libesp_websocket_client.a | Bin 174026 -> 174026 bytes tools/sdk/esp32/lib/libesp_wifi.a | Bin 810850 -> 810850 bytes tools/sdk/esp32/lib/libespcoredump.a | Bin 179120 -> 179120 bytes tools/sdk/esp32/lib/libexpat.a | Bin 1852610 -> 1852610 bytes tools/sdk/esp32/lib/libfatfs.a | Bin 957992 -> 957992 bytes tools/sdk/esp32/lib/libfb_gfx.a | Bin 44068 -> 44068 bytes tools/sdk/esp32/lib/libfreemodbus.a | Bin 2026634 -> 2026634 bytes tools/sdk/esp32/lib/libfreertos.a | Bin 944832 -> 944832 bytes tools/sdk/esp32/lib/libhal.a | Bin 1967346 -> 1967346 bytes tools/sdk/esp32/lib/libheap.a | Bin 518904 -> 518904 bytes tools/sdk/esp32/lib/libjsmn.a | Bin 28842 -> 28842 bytes tools/sdk/esp32/lib/libjson.a | Bin 406970 -> 406970 bytes tools/sdk/esp32/lib/libjson_generator.a | Bin 0 -> 60708 bytes tools/sdk/esp32/lib/libjson_parser.a | Bin 0 -> 122508 bytes tools/sdk/esp32/lib/liblibsodium.a | Bin 4456852 -> 4456852 bytes tools/sdk/esp32/lib/liblog.a | Bin 96480 -> 96480 bytes tools/sdk/esp32/lib/liblwip.a | Bin 6141204 -> 6141204 bytes tools/sdk/esp32/lib/libmbedcrypto.a | Bin 3522704 -> 3599324 bytes tools/sdk/esp32/lib/libmbedtls.a | Bin 1180092 -> 1180092 bytes tools/sdk/esp32/lib/libmbedx509.a | Bin 672396 -> 672396 bytes tools/sdk/esp32/lib/libmdns.a | Bin 1005866 -> 1005866 bytes tools/sdk/esp32/lib/libmqtt.a | Bin 457928 -> 457928 bytes tools/sdk/esp32/lib/libnewlib.a | Bin 343028 -> 343028 bytes tools/sdk/esp32/lib/libnghttp.a | Bin 2076820 -> 2076820 bytes tools/sdk/esp32/lib/libnvs_flash.a | Bin 1757434 -> 1757434 bytes tools/sdk/esp32/lib/libopenssl.a | Bin 439978 -> 439978 bytes tools/sdk/esp32/lib/libperfmon.a | Bin 76316 -> 76316 bytes tools/sdk/esp32/lib/libprotobuf-c.a | Bin 417836 -> 417836 bytes tools/sdk/esp32/lib/libprotocomm.a | Bin 613206 -> 613206 bytes tools/sdk/esp32/lib/libpthread.a | Bin 185852 -> 185852 bytes tools/sdk/esp32/lib/libqrcode.a | Bin 0 -> 204254 bytes tools/sdk/esp32/lib/libsdmmc.a | Bin 449242 -> 449242 bytes tools/sdk/esp32/lib/libsoc.a | Bin 736000 -> 736000 bytes tools/sdk/esp32/lib/libsoc_esp32.a | Bin 403452 -> 403452 bytes tools/sdk/esp32/lib/libspi_flash.a | Bin 976012 -> 976012 bytes tools/sdk/esp32/lib/libspiffs.a | Bin 789290 -> 789290 bytes tools/sdk/esp32/lib/libtcp_transport.a | Bin 355232 -> 355232 bytes tools/sdk/esp32/lib/libtcpip_adapter.a | Bin 197200 -> 197200 bytes tools/sdk/esp32/lib/libulp.a | Bin 95670 -> 95670 bytes tools/sdk/esp32/lib/libunity.a | Bin 263370 -> 263370 bytes tools/sdk/esp32/lib/libvfs.a | Bin 421014 -> 421014 bytes tools/sdk/esp32/lib/libwear_levelling.a | Bin 344956 -> 344956 bytes tools/sdk/esp32/lib/libwifi_provisioning.a | Bin 949510 -> 949510 bytes tools/sdk/esp32/lib/libwpa_supplicant.a | Bin 5917502 -> 5916542 bytes tools/sdk/esp32/lib/libws2812_led.a | Bin 0 -> 11450 bytes tools/sdk/esp32/lib/libxtensa.a | Bin 140264 -> 140264 bytes tools/sdk/esp32/sdkconfig | 48 +- tools/sdk/esp32s2/ld/libesp32s2.a | Bin 707862 -> 707862 bytes tools/sdk/esp32s2/lib/libapp_trace.a | Bin 120580 -> 120580 bytes tools/sdk/esp32s2/lib/libapp_update.a | Bin 136678 -> 136678 bytes tools/sdk/esp32s2/lib/libasio.a | Bin 2925872 -> 2925872 bytes tools/sdk/esp32s2/lib/libbootloader_support.a | Bin 633466 -> 633466 bytes tools/sdk/esp32s2/lib/libcbor.a | Bin 510530 -> 510530 bytes tools/sdk/esp32s2/lib/libcmock.a | Bin 29236 -> 29236 bytes tools/sdk/esp32s2/lib/libcoap.a | Bin 1686930 -> 1686930 bytes tools/sdk/esp32s2/lib/libconsole.a | Bin 556184 -> 556184 bytes tools/sdk/esp32s2/lib/libcxx.a | Bin 61614 -> 61614 bytes tools/sdk/esp32s2/lib/libdriver.a | Bin 4402440 -> 4402440 bytes tools/sdk/esp32s2/lib/libefuse.a | Bin 259888 -> 259888 bytes tools/sdk/esp32s2/lib/libesp-face.a | Bin 1020866 -> 1020866 bytes tools/sdk/esp32s2/lib/libesp-tls.a | Bin 255338 -> 255338 bytes tools/sdk/esp32s2/lib/libesp32s2.a | Bin 707862 -> 707862 bytes tools/sdk/esp32s2/lib/libesp_adc_cal.a | Bin 42096 -> 42096 bytes tools/sdk/esp32s2/lib/libesp_common.a | Bin 454534 -> 454534 bytes tools/sdk/esp32s2/lib/libesp_eth.a | Bin 657922 -> 657922 bytes tools/sdk/esp32s2/lib/libesp_event.a | Bin 516100 -> 516100 bytes tools/sdk/esp32s2/lib/libesp_gdbstub.a | Bin 123540 -> 123540 bytes tools/sdk/esp32s2/lib/libesp_hid.a | Bin 267330 -> 267330 bytes tools/sdk/esp32s2/lib/libesp_http_client.a | Bin 365648 -> 365648 bytes tools/sdk/esp32s2/lib/libesp_http_server.a | Bin 492448 -> 492448 bytes tools/sdk/esp32s2/lib/libesp_https_ota.a | Bin 78612 -> 78612 bytes tools/sdk/esp32s2/lib/libesp_https_server.a | Bin 77156 -> 77156 bytes tools/sdk/esp32s2/lib/libesp_ipc.a | Bin 32120 -> 32120 bytes tools/sdk/esp32s2/lib/libesp_littlefs.a | Bin 754482 -> 754482 bytes tools/sdk/esp32s2/lib/libesp_local_ctrl.a | Bin 318312 -> 318312 bytes tools/sdk/esp32s2/lib/libesp_netif.a | Bin 995766 -> 995766 bytes tools/sdk/esp32s2/lib/libesp_pm.a | Bin 111998 -> 111998 bytes tools/sdk/esp32s2/lib/libesp_ringbuf.a | Bin 166410 -> 166410 bytes tools/sdk/esp32s2/lib/libesp_rom.a | Bin 57738 -> 57738 bytes .../esp32s2/lib/libesp_serial_slave_link.a | Bin 246812 -> 246812 bytes tools/sdk/esp32s2/lib/libesp_system.a | Bin 1025852 -> 1025852 bytes tools/sdk/esp32s2/lib/libesp_timer.a | Bin 135790 -> 135790 bytes .../sdk/esp32s2/lib/libesp_websocket_client.a | Bin 192202 -> 192202 bytes tools/sdk/esp32s2/lib/libesp_wifi.a | Bin 894372 -> 894372 bytes tools/sdk/esp32s2/lib/libespcoredump.a | Bin 168092 -> 168092 bytes tools/sdk/esp32s2/lib/libexpat.a | Bin 1841318 -> 1841318 bytes tools/sdk/esp32s2/lib/libfatfs.a | Bin 1001440 -> 1001440 bytes tools/sdk/esp32s2/lib/libfb_gfx.a | Bin 44544 -> 44544 bytes tools/sdk/esp32s2/lib/libfreemodbus.a | Bin 2052438 -> 2052438 bytes tools/sdk/esp32s2/lib/libfreertos.a | Bin 821172 -> 821172 bytes tools/sdk/esp32s2/lib/libhal.a | Bin 2208220 -> 2208220 bytes tools/sdk/esp32s2/lib/libheap.a | Bin 518580 -> 518580 bytes tools/sdk/esp32s2/lib/libjsmn.a | Bin 31678 -> 31678 bytes tools/sdk/esp32s2/lib/libjson.a | Bin 407854 -> 407854 bytes tools/sdk/esp32s2/lib/liblibsodium.a | Bin 4340164 -> 4340164 bytes tools/sdk/esp32s2/lib/liblog.a | Bin 95320 -> 95320 bytes tools/sdk/esp32s2/lib/liblwip.a | Bin 6219332 -> 6219332 bytes tools/sdk/esp32s2/lib/libmbedcrypto.a | Bin 3627024 -> 3627024 bytes tools/sdk/esp32s2/lib/libmbedtls.a | Bin 1181744 -> 1181744 bytes tools/sdk/esp32s2/lib/libmbedx509.a | Bin 673488 -> 673488 bytes tools/sdk/esp32s2/lib/libmdns.a | Bin 1067950 -> 1067950 bytes tools/sdk/esp32s2/lib/libmqtt.a | Bin 490924 -> 490924 bytes tools/sdk/esp32s2/lib/libnewlib.a | Bin 272084 -> 272084 bytes tools/sdk/esp32s2/lib/libnghttp.a | Bin 2082916 -> 2082916 bytes tools/sdk/esp32s2/lib/libnvs_flash.a | Bin 1751338 -> 1751338 bytes tools/sdk/esp32s2/lib/libopenssl.a | Bin 438722 -> 438722 bytes tools/sdk/esp32s2/lib/libperfmon.a | Bin 76596 -> 76596 bytes tools/sdk/esp32s2/lib/libprotobuf-c.a | Bin 420936 -> 420936 bytes tools/sdk/esp32s2/lib/libprotocomm.a | Bin 442204 -> 442204 bytes tools/sdk/esp32s2/lib/libpthread.a | Bin 186892 -> 186892 bytes tools/sdk/esp32s2/lib/libsdmmc.a | Bin 446466 -> 446466 bytes tools/sdk/esp32s2/lib/libsoc.a | Bin 501100 -> 501100 bytes tools/sdk/esp32s2/lib/libsoc_esp32s2.a | Bin 496780 -> 496780 bytes tools/sdk/esp32s2/lib/libspi_flash.a | Bin 874732 -> 874732 bytes tools/sdk/esp32s2/lib/libspiffs.a | Bin 781914 -> 781914 bytes tools/sdk/esp32s2/lib/libtcp_transport.a | Bin 353588 -> 353588 bytes tools/sdk/esp32s2/lib/libtcpip_adapter.a | Bin 218756 -> 218756 bytes tools/sdk/esp32s2/lib/libtinyusb.a | Bin 789424 -> 789424 bytes tools/sdk/esp32s2/lib/libulp.a | Bin 55294 -> 55294 bytes tools/sdk/esp32s2/lib/libunity.a | Bin 265918 -> 265918 bytes tools/sdk/esp32s2/lib/libvfs.a | Bin 419902 -> 419902 bytes tools/sdk/esp32s2/lib/libwear_levelling.a | Bin 335200 -> 335200 bytes tools/sdk/esp32s2/lib/libwifi_provisioning.a | Bin 965224 -> 965224 bytes tools/sdk/esp32s2/lib/libwpa_supplicant.a | Bin 6068482 -> 6068482 bytes tools/sdk/esp32s2/lib/libxtensa.a | Bin 195444 -> 195444 bytes 185 files changed, 3230 insertions(+), 5 deletions(-) create mode 100644 tools/sdk/esp32/include/button/button/include/iot_button.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_console.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_core.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_mqtt.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_ota.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_schedule.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_standard_devices.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_standard_params.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_standard_services.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_standard_types.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_user_mapping.h create mode 100644 tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_utils.h create mode 100644 tools/sdk/esp32/include/esp_schedule/include/esp_schedule.h create mode 100755 tools/sdk/esp32/include/json_generator/json_generator.h create mode 100644 tools/sdk/esp32/include/json_parser/jsmn/include/jsmn-changed.h create mode 100755 tools/sdk/esp32/include/json_parser/json_parser.h create mode 100644 tools/sdk/esp32/include/qrcode/include/qrcode.h create mode 100644 tools/sdk/esp32/include/ws2812_led/led_strip.h create mode 100644 tools/sdk/esp32/include/ws2812_led/ws2812_led.h create mode 100644 tools/sdk/esp32/lib/libbutton.a create mode 100644 tools/sdk/esp32/lib/libesp_rainmaker.a create mode 100644 tools/sdk/esp32/lib/libesp_schedule.a create mode 100644 tools/sdk/esp32/lib/libjson_generator.a create mode 100644 tools/sdk/esp32/lib/libjson_parser.a create mode 100644 tools/sdk/esp32/lib/libqrcode.a create mode 100644 tools/sdk/esp32/lib/libws2812_led.a diff --git a/platform.txt b/platform.txt index 7ecf54ab..7f9d6fc5 100644 --- a/platform.txt +++ b/platform.txt @@ -22,8 +22,8 @@ compiler.prefix=xtensa-{build.mcu}-elf- # # ESP32 Support Start # -compiler.cpreprocessor.flags.esp32=-DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE -DIDF_VER="v4.3-dev-1561-g357a27760-dirty" -DESP_PLATFORM "-I{compiler.sdk.path}/include/config" "-I{compiler.sdk.path}/include/newlib/platform_include" "-I{compiler.sdk.path}/include/freertos/include" "-I{compiler.sdk.path}/include/freertos/xtensa/include" "-I{compiler.sdk.path}/include/heap/include" "-I{compiler.sdk.path}/include/log/include" "-I{compiler.sdk.path}/include/lwip/include/apps" "-I{compiler.sdk.path}/include/lwip/include/apps/sntp" "-I{compiler.sdk.path}/include/lwip/lwip/src/include" "-I{compiler.sdk.path}/include/lwip/port/esp32/include" "-I{compiler.sdk.path}/include/lwip/port/esp32/include/arch" "-I{compiler.sdk.path}/include/soc/include" "-I{compiler.sdk.path}/include/soc/src/esp32" "-I{compiler.sdk.path}/include/hal/esp32/include" "-I{compiler.sdk.path}/include/hal/include" "-I{compiler.sdk.path}/include/esp_rom/include" "-I{compiler.sdk.path}/include/esp_common/include" "-I{compiler.sdk.path}/include/esp_system/include" "-I{compiler.sdk.path}/include/xtensa/include" "-I{compiler.sdk.path}/include/xtensa/esp32/include" "-I{compiler.sdk.path}/include/esp32/include" "-I{compiler.sdk.path}/include/driver/include" "-I{compiler.sdk.path}/include/driver/esp32/include" "-I{compiler.sdk.path}/include/esp_ringbuf/include" "-I{compiler.sdk.path}/include/efuse/include" "-I{compiler.sdk.path}/include/efuse/esp32/include" "-I{compiler.sdk.path}/include/espcoredump/include" "-I{compiler.sdk.path}/include/esp_timer/include" "-I{compiler.sdk.path}/include/esp_ipc/include" "-I{compiler.sdk.path}/include/esp_pm/include" "-I{compiler.sdk.path}/include/soc/soc/esp32/include" "-I{compiler.sdk.path}/include/soc/soc/include" "-I{compiler.sdk.path}/include/soc/soc/esp32/private_include" "-I{compiler.sdk.path}/include/vfs/include" "-I{compiler.sdk.path}/include/esp_wifi/include" "-I{compiler.sdk.path}/include/esp_wifi/esp32/include" "-I{compiler.sdk.path}/include/esp_event/include" "-I{compiler.sdk.path}/include/esp_netif/include" "-I{compiler.sdk.path}/include/esp_eth/include" "-I{compiler.sdk.path}/include/tcpip_adapter/include" "-I{compiler.sdk.path}/include/app_trace/include" "-I{compiler.sdk.path}/include/mbedtls/port/include" "-I{compiler.sdk.path}/include/mbedtls/mbedtls/include" "-I{compiler.sdk.path}/include/mbedtls/esp_crt_bundle/include" "-I{compiler.sdk.path}/include/bootloader_support/include" "-I{compiler.sdk.path}/include/app_update/include" "-I{compiler.sdk.path}/include/spi_flash/include" "-I{compiler.sdk.path}/include/nvs_flash/include" "-I{compiler.sdk.path}/include/pthread/include" "-I{compiler.sdk.path}/include/wpa_supplicant/include" "-I{compiler.sdk.path}/include/wpa_supplicant/port/include" "-I{compiler.sdk.path}/include/wpa_supplicant/include/esp_supplicant" "-I{compiler.sdk.path}/include/perfmon/include" "-I{compiler.sdk.path}/include/asio/asio/asio/include" "-I{compiler.sdk.path}/include/asio/port/include" "-I{compiler.sdk.path}/include/bt/include" "-I{compiler.sdk.path}/include/bt/common/osi/include" "-I{compiler.sdk.path}/include/bt/host/bluedroid/api/include/api" "-I{compiler.sdk.path}/include/cbor/port/include" "-I{compiler.sdk.path}/include/unity/include" "-I{compiler.sdk.path}/include/unity/unity/src" "-I{compiler.sdk.path}/include/unity/unity/extras/fixture/src" "-I{compiler.sdk.path}/include/cmock/CMock/src" "-I{compiler.sdk.path}/include/coap/port/include" "-I{compiler.sdk.path}/include/coap/port/include/coap" "-I{compiler.sdk.path}/include/coap/libcoap/include" "-I{compiler.sdk.path}/include/coap/libcoap/include/coap2" "-I{compiler.sdk.path}/include/console" "-I{compiler.sdk.path}/include/nghttp/port/include" "-I{compiler.sdk.path}/include/nghttp/nghttp2/lib/includes" "-I{compiler.sdk.path}/include/esp-tls" "-I{compiler.sdk.path}/include/esp_adc_cal/include" "-I{compiler.sdk.path}/include/esp_gdbstub/include" "-I{compiler.sdk.path}/include/esp_hid/include" "-I{compiler.sdk.path}/include/tcp_transport/include" "-I{compiler.sdk.path}/include/esp_http_client/include" "-I{compiler.sdk.path}/include/esp_http_server/include" "-I{compiler.sdk.path}/include/esp_https_ota/include" "-I{compiler.sdk.path}/include/protobuf-c/protobuf-c" "-I{compiler.sdk.path}/include/protocomm/include/common" "-I{compiler.sdk.path}/include/protocomm/include/security" "-I{compiler.sdk.path}/include/protocomm/include/transports" "-I{compiler.sdk.path}/include/mdns/include" "-I{compiler.sdk.path}/include/esp_local_ctrl/include" "-I{compiler.sdk.path}/include/sdmmc/include" "-I{compiler.sdk.path}/include/esp_serial_slave_link/include" "-I{compiler.sdk.path}/include/esp_websocket_client/include" "-I{compiler.sdk.path}/include/expat/expat/expat/lib" "-I{compiler.sdk.path}/include/expat/port/include" "-I{compiler.sdk.path}/include/wear_levelling/include" "-I{compiler.sdk.path}/include/fatfs/diskio" "-I{compiler.sdk.path}/include/fatfs/vfs" "-I{compiler.sdk.path}/include/fatfs/src" "-I{compiler.sdk.path}/include/freemodbus/common/include" "-I{compiler.sdk.path}/include/idf_test/include" "-I{compiler.sdk.path}/include/idf_test/include/esp32" "-I{compiler.sdk.path}/include/jsmn/include" "-I{compiler.sdk.path}/include/json/cJSON" "-I{compiler.sdk.path}/include/libsodium/libsodium/src/libsodium/include" "-I{compiler.sdk.path}/include/libsodium/port_include" "-I{compiler.sdk.path}/include/mqtt/esp-mqtt/include" "-I{compiler.sdk.path}/include/openssl/include" "-I{compiler.sdk.path}/include/spiffs/include" "-I{compiler.sdk.path}/include/ulp/include" "-I{compiler.sdk.path}/include/wifi_provisioning/include" "-I{compiler.sdk.path}/include/esp-face/face_detection/include" "-I{compiler.sdk.path}/include/esp-face/face_recognition/include" "-I{compiler.sdk.path}/include/esp-face/object_detection/include" "-I{compiler.sdk.path}/include/esp-face/image_util/include" "-I{compiler.sdk.path}/include/esp-face/pose_estimation/include" "-I{compiler.sdk.path}/include/esp-face/lib/include" "-I{compiler.sdk.path}/include/esp32-camera/driver/include" "-I{compiler.sdk.path}/include/esp32-camera/conversions/include" "-I{compiler.sdk.path}/include/esp_littlefs/src" "-I{compiler.sdk.path}/include/esp_littlefs/include" "-I{compiler.sdk.path}/include/fb_gfx/include" -compiler.c.elf.libs.esp32=-lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lasio -lbt -lcbor -lunity -lcmock -lcoap -lconsole -lnghttp -lesp-tls -lesp_adc_cal -lesp_gdbstub -lesp_hid -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lprotobuf-c -lprotocomm -lmdns -lesp_local_ctrl -lsdmmc -lesp_serial_slave_link -lesp_websocket_client -lexpat -lwear_levelling -lfatfs -lfreemodbus -ljsmn -ljson -llibsodium -lmqtt -lopenssl -lspiffs -lulp -lwifi_provisioning -lesp-face -lesp32-camera -lesp_littlefs -lfb_gfx -lasio -lcbor -lcmock -lunity -lcoap -lesp_gdbstub -lesp_hid -lesp_local_ctrl -lesp_websocket_client -lexpat -lfreemodbus -ljsmn -llibsodium -lmqtt -lwifi_provisioning -lprotocomm -lprotobuf-c -ljson -lesp-face -lpe -lfd -lfr -ldetection_cat_face -ldetection -ldl -lesp32-camera -lesp_littlefs -lfb_gfx -lbt -lbtdm_app -lesp_adc_cal -lmdns -lconsole -lfatfs -lwear_levelling -lopenssl -lspiffs -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxt_hal -lm -lnewlib -lgcc -lstdc++ -lpthread -lapp_trace -lgcov -lapp_trace -lgcov -lc +compiler.cpreprocessor.flags.esp32=-DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE -DIDF_VER="v4.3-dev-1561-g357a27760-dirty" -DESP_PLATFORM "-I{compiler.sdk.path}/include/config" "-I{compiler.sdk.path}/include/newlib/platform_include" "-I{compiler.sdk.path}/include/freertos/include" "-I{compiler.sdk.path}/include/freertos/xtensa/include" "-I{compiler.sdk.path}/include/heap/include" "-I{compiler.sdk.path}/include/log/include" "-I{compiler.sdk.path}/include/lwip/include/apps" "-I{compiler.sdk.path}/include/lwip/include/apps/sntp" "-I{compiler.sdk.path}/include/lwip/lwip/src/include" "-I{compiler.sdk.path}/include/lwip/port/esp32/include" "-I{compiler.sdk.path}/include/lwip/port/esp32/include/arch" "-I{compiler.sdk.path}/include/soc/include" "-I{compiler.sdk.path}/include/soc/src/esp32" "-I{compiler.sdk.path}/include/hal/esp32/include" "-I{compiler.sdk.path}/include/hal/include" "-I{compiler.sdk.path}/include/esp_rom/include" "-I{compiler.sdk.path}/include/esp_common/include" "-I{compiler.sdk.path}/include/esp_system/include" "-I{compiler.sdk.path}/include/xtensa/include" "-I{compiler.sdk.path}/include/xtensa/esp32/include" "-I{compiler.sdk.path}/include/esp32/include" "-I{compiler.sdk.path}/include/driver/include" "-I{compiler.sdk.path}/include/driver/esp32/include" "-I{compiler.sdk.path}/include/esp_ringbuf/include" "-I{compiler.sdk.path}/include/efuse/include" "-I{compiler.sdk.path}/include/efuse/esp32/include" "-I{compiler.sdk.path}/include/espcoredump/include" "-I{compiler.sdk.path}/include/esp_timer/include" "-I{compiler.sdk.path}/include/esp_ipc/include" "-I{compiler.sdk.path}/include/esp_pm/include" "-I{compiler.sdk.path}/include/soc/soc/esp32/include" "-I{compiler.sdk.path}/include/soc/soc/include" "-I{compiler.sdk.path}/include/soc/soc/esp32/private_include" "-I{compiler.sdk.path}/include/vfs/include" "-I{compiler.sdk.path}/include/esp_wifi/include" "-I{compiler.sdk.path}/include/esp_wifi/esp32/include" "-I{compiler.sdk.path}/include/esp_event/include" "-I{compiler.sdk.path}/include/esp_netif/include" "-I{compiler.sdk.path}/include/esp_eth/include" "-I{compiler.sdk.path}/include/tcpip_adapter/include" "-I{compiler.sdk.path}/include/app_trace/include" "-I{compiler.sdk.path}/include/mbedtls/port/include" "-I{compiler.sdk.path}/include/mbedtls/mbedtls/include" "-I{compiler.sdk.path}/include/mbedtls/esp_crt_bundle/include" "-I{compiler.sdk.path}/include/bootloader_support/include" "-I{compiler.sdk.path}/include/app_update/include" "-I{compiler.sdk.path}/include/spi_flash/include" "-I{compiler.sdk.path}/include/nvs_flash/include" "-I{compiler.sdk.path}/include/pthread/include" "-I{compiler.sdk.path}/include/wpa_supplicant/include" "-I{compiler.sdk.path}/include/wpa_supplicant/port/include" "-I{compiler.sdk.path}/include/wpa_supplicant/include/esp_supplicant" "-I{compiler.sdk.path}/include/perfmon/include" "-I{compiler.sdk.path}/include/asio/asio/asio/include" "-I{compiler.sdk.path}/include/asio/port/include" "-I{compiler.sdk.path}/include/bt/include" "-I{compiler.sdk.path}/include/bt/common/osi/include" "-I{compiler.sdk.path}/include/bt/host/bluedroid/api/include/api" "-I{compiler.sdk.path}/include/cbor/port/include" "-I{compiler.sdk.path}/include/unity/include" "-I{compiler.sdk.path}/include/unity/unity/src" "-I{compiler.sdk.path}/include/unity/unity/extras/fixture/src" "-I{compiler.sdk.path}/include/cmock/CMock/src" "-I{compiler.sdk.path}/include/coap/port/include" "-I{compiler.sdk.path}/include/coap/port/include/coap" "-I{compiler.sdk.path}/include/coap/libcoap/include" "-I{compiler.sdk.path}/include/coap/libcoap/include/coap2" "-I{compiler.sdk.path}/include/console" "-I{compiler.sdk.path}/include/nghttp/port/include" "-I{compiler.sdk.path}/include/nghttp/nghttp2/lib/includes" "-I{compiler.sdk.path}/include/esp-tls" "-I{compiler.sdk.path}/include/esp_adc_cal/include" "-I{compiler.sdk.path}/include/esp_gdbstub/include" "-I{compiler.sdk.path}/include/esp_hid/include" "-I{compiler.sdk.path}/include/tcp_transport/include" "-I{compiler.sdk.path}/include/esp_http_client/include" "-I{compiler.sdk.path}/include/esp_http_server/include" "-I{compiler.sdk.path}/include/esp_https_ota/include" "-I{compiler.sdk.path}/include/protobuf-c/protobuf-c" "-I{compiler.sdk.path}/include/protocomm/include/common" "-I{compiler.sdk.path}/include/protocomm/include/security" "-I{compiler.sdk.path}/include/protocomm/include/transports" "-I{compiler.sdk.path}/include/mdns/include" "-I{compiler.sdk.path}/include/esp_local_ctrl/include" "-I{compiler.sdk.path}/include/sdmmc/include" "-I{compiler.sdk.path}/include/esp_serial_slave_link/include" "-I{compiler.sdk.path}/include/esp_websocket_client/include" "-I{compiler.sdk.path}/include/expat/expat/expat/lib" "-I{compiler.sdk.path}/include/expat/port/include" "-I{compiler.sdk.path}/include/wear_levelling/include" "-I{compiler.sdk.path}/include/fatfs/diskio" "-I{compiler.sdk.path}/include/fatfs/vfs" "-I{compiler.sdk.path}/include/fatfs/src" "-I{compiler.sdk.path}/include/freemodbus/common/include" "-I{compiler.sdk.path}/include/idf_test/include" "-I{compiler.sdk.path}/include/idf_test/include/esp32" "-I{compiler.sdk.path}/include/jsmn/include" "-I{compiler.sdk.path}/include/json/cJSON" "-I{compiler.sdk.path}/include/libsodium/libsodium/src/libsodium/include" "-I{compiler.sdk.path}/include/libsodium/port_include" "-I{compiler.sdk.path}/include/mqtt/esp-mqtt/include" "-I{compiler.sdk.path}/include/openssl/include" "-I{compiler.sdk.path}/include/spiffs/include" "-I{compiler.sdk.path}/include/ulp/include" "-I{compiler.sdk.path}/include/wifi_provisioning/include" "-I{compiler.sdk.path}/include/button/button/include" "-I{compiler.sdk.path}/include/json_parser" "-I{compiler.sdk.path}/include/json_parser/jsmn/include" "-I{compiler.sdk.path}/include/json_generator" "-I{compiler.sdk.path}/include/esp_schedule/include" "-I{compiler.sdk.path}/include/esp_rainmaker/include" "-I{compiler.sdk.path}/include/qrcode/include" "-I{compiler.sdk.path}/include/ws2812_led" "-I{compiler.sdk.path}/include/esp-face/face_detection/include" "-I{compiler.sdk.path}/include/esp-face/face_recognition/include" "-I{compiler.sdk.path}/include/esp-face/object_detection/include" "-I{compiler.sdk.path}/include/esp-face/image_util/include" "-I{compiler.sdk.path}/include/esp-face/pose_estimation/include" "-I{compiler.sdk.path}/include/esp-face/lib/include" "-I{compiler.sdk.path}/include/esp32-camera/driver/include" "-I{compiler.sdk.path}/include/esp32-camera/conversions/include" "-I{compiler.sdk.path}/include/esp_littlefs/src" "-I{compiler.sdk.path}/include/esp_littlefs/include" "-I{compiler.sdk.path}/include/fb_gfx/include" +compiler.c.elf.libs.esp32=-lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lasio -lbt -lcbor -lunity -lcmock -lcoap -lconsole -lnghttp -lesp-tls -lesp_adc_cal -lesp_gdbstub -lesp_hid -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lprotobuf-c -lprotocomm -lmdns -lesp_local_ctrl -lsdmmc -lesp_serial_slave_link -lesp_websocket_client -lexpat -lwear_levelling -lfatfs -lfreemodbus -ljsmn -ljson -llibsodium -lmqtt -lopenssl -lspiffs -lulp -lwifi_provisioning -lbutton -ljson_parser -ljson_generator -lesp_schedule -lesp_rainmaker -lqrcode -lws2812_led -lesp-face -lesp32-camera -lesp_littlefs -lfb_gfx -lasio -lcbor -lcmock -lunity -lcoap -lesp_gdbstub -lesp_hid -lesp_local_ctrl -lesp_websocket_client -lexpat -lfreemodbus -ljsmn -llibsodium -lbutton -lesp_rainmaker -lmqtt -lwifi_provisioning -lprotocomm -lprotobuf-c -ljson -ljson_parser -ljson_generator -lesp_schedule -lqrcode -lws2812_led -lesp-face -lpe -lfd -lfr -ldetection_cat_face -ldetection -ldl -lesp32-camera -lesp_littlefs -lfb_gfx -lbt -lbtdm_app -lesp_adc_cal -lmdns -lconsole -lfatfs -lwear_levelling -lopenssl -lspiffs -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxtensa -lesp_pm -lmbedtls -lefuse -lbootloader_support -lapp_update -lesp_ipc -lspi_flash -lnvs_flash -lpthread -lesp_system -lesp_rom -lhal -lsoc -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -llwip -llog -lheap -lesp_ringbuf -ldriver -lespcoredump -lperfmon -lesp32 -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lsoc_esp32 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lrtc -lsmartconfig -lphy -lxt_hal -lm -lnewlib -lgcc -lstdc++ -lpthread -lapp_trace -lgcov -lapp_trace -lgcov -lc compiler.c.flags.esp32=-mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -O2 -fstack-protector -std=gnu99 -Wno-old-style-declaration -MMD -c compiler.cpp.flags.esp32=-mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -O2 -fstack-protector -std=gnu++11 -fexceptions -fno-rtti -MMD -c compiler.S.flags.esp32=-ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -O2 -fstack-protector -x assembler-with-cpp -MMD -c diff --git a/tools/platformio-build-esp32.py b/tools/platformio-build-esp32.py index ddad225a..521cd59a 100644 --- a/tools/platformio-build-esp32.py +++ b/tools/platformio-build-esp32.py @@ -212,6 +212,14 @@ env.Append( join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "spiffs", "include"), join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "ulp", "include"), join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "wifi_provisioning", "include"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "button", "button", "include"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "json_parser"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "json_parser", "jsmn", "include"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "json_generator"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "esp_schedule", "include"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "esp_rainmaker", "include"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "qrcode", "include"), + join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "ws2812_led"), join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "esp-face", "face_detection", "include"), join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "esp-face", "face_recognition", "include"), join(FRAMEWORK_DIR, "tools", "sdk", "esp32", "include", "esp-face", "object_detection", "include"), @@ -232,7 +240,7 @@ env.Append( ], LIBS=[ - "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lasio", "-lbt", "-lcbor", "-lunity", "-lcmock", "-lcoap", "-lconsole", "-lnghttp", "-lesp-tls", "-lesp_adc_cal", "-lesp_gdbstub", "-lesp_hid", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lprotobuf-c", "-lprotocomm", "-lmdns", "-lesp_local_ctrl", "-lsdmmc", "-lesp_serial_slave_link", "-lesp_websocket_client", "-lexpat", "-lwear_levelling", "-lfatfs", "-lfreemodbus", "-ljsmn", "-ljson", "-llibsodium", "-lmqtt", "-lopenssl", "-lspiffs", "-lulp", "-lwifi_provisioning", "-lesp-face", "-lesp32-camera", "-lesp_littlefs", "-lfb_gfx", "-lasio", "-lcbor", "-lcmock", "-lunity", "-lcoap", "-lesp_gdbstub", "-lesp_hid", "-lesp_local_ctrl", "-lesp_websocket_client", "-lexpat", "-lfreemodbus", "-ljsmn", "-llibsodium", "-lmqtt", "-lwifi_provisioning", "-lprotocomm", "-lprotobuf-c", "-ljson", "-lesp-face", "-lpe", "-lfd", "-lfr", "-ldetection_cat_face", "-ldetection", "-ldl", "-lesp32-camera", "-lesp_littlefs", "-lfb_gfx", "-lbt", "-lbtdm_app", "-lesp_adc_cal", "-lmdns", "-lconsole", "-lfatfs", "-lwear_levelling", "-lopenssl", "-lspiffs", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxt_hal", "-lm", "-lnewlib", "-lgcc", "-lstdc++", "-lpthread", "-lapp_trace", "-lgcov", "-lapp_trace", "-lgcov", "-lc" + "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lasio", "-lbt", "-lcbor", "-lunity", "-lcmock", "-lcoap", "-lconsole", "-lnghttp", "-lesp-tls", "-lesp_adc_cal", "-lesp_gdbstub", "-lesp_hid", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lprotobuf-c", "-lprotocomm", "-lmdns", "-lesp_local_ctrl", "-lsdmmc", "-lesp_serial_slave_link", "-lesp_websocket_client", "-lexpat", "-lwear_levelling", "-lfatfs", "-lfreemodbus", "-ljsmn", "-ljson", "-llibsodium", "-lmqtt", "-lopenssl", "-lspiffs", "-lulp", "-lwifi_provisioning", "-lbutton", "-ljson_parser", "-ljson_generator", "-lesp_schedule", "-lesp_rainmaker", "-lqrcode", "-lws2812_led", "-lesp-face", "-lesp32-camera", "-lesp_littlefs", "-lfb_gfx", "-lasio", "-lcbor", "-lcmock", "-lunity", "-lcoap", "-lesp_gdbstub", "-lesp_hid", "-lesp_local_ctrl", "-lesp_websocket_client", "-lexpat", "-lfreemodbus", "-ljsmn", "-llibsodium", "-lbutton", "-lesp_rainmaker", "-lmqtt", "-lwifi_provisioning", "-lprotocomm", "-lprotobuf-c", "-ljson", "-ljson_parser", "-ljson_generator", "-lesp_schedule", "-lqrcode", "-lws2812_led", "-lesp-face", "-lpe", "-lfd", "-lfr", "-ldetection_cat_face", "-ldetection", "-ldl", "-lesp32-camera", "-lesp_littlefs", "-lfb_gfx", "-lbt", "-lbtdm_app", "-lesp_adc_cal", "-lmdns", "-lconsole", "-lfatfs", "-lwear_levelling", "-lopenssl", "-lspiffs", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lesp_pm", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_system", "-lesp_rom", "-lhal", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lespcoredump", "-lperfmon", "-lesp32", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxt_hal", "-lm", "-lnewlib", "-lgcc", "-lstdc++", "-lpthread", "-lapp_trace", "-lgcov", "-lapp_trace", "-lgcov", "-lc" ], CPPDEFINES=[ diff --git a/tools/sdk/esp32/include/button/button/include/iot_button.h b/tools/sdk/esp32/include/button/button/include/iot_button.h new file mode 100644 index 00000000..3e735133 --- /dev/null +++ b/tools/sdk/esp32/include/button/button/include/iot_button.h @@ -0,0 +1,272 @@ +// Copyright 2020 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +#ifndef _IOT_BUTTON_H_ +#define _IOT_BUTTON_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include +typedef void (* button_cb)(void*); +typedef void* button_handle_t; + +typedef enum { + BUTTON_ACTIVE_HIGH = 1, /*!