From c39391f4a0eee55d6afd422390efe76f8c26434a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 8 Jul 2017 15:09:05 +0200 Subject: [PATCH] small cleanup of ignore files etc --- .gitignore | 1 - CMakeLists.txt | 137 ++++++++++++++++++++++++++++++++ html_orig/.gitignore | 1 + html_orig/_test_env.php.example | 3 + html_orig/term_test.php | 6 +- html_orig/wifi_test.php | 6 +- user/ansi_parser.c | 24 +++--- 7 files changed, 162 insertions(+), 16 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 html_orig/.gitignore create mode 100644 html_orig/_test_env.php.example diff --git a/.gitignore b/.gitignore index 369459f..119a231 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,6 @@ eagle.app.sym # Garbage added by CLion .idea/ -CMakeLists.txt cmake-build-debug/ .sass-cache diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ee1d441 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,137 @@ +cmake_minimum_required(VERSION 3.7) + +################################################################### +# This is a fake CMake config to make the project work in CLion # +# Do not attempt to build it with cmake, use make instead. # +################################################################### + +project(esp_vt100_firmware) + +set(CMAKE_CXX_STANDARD GNU99) + +set(SOURCE_FILES + libesphttpd/core/auth.c + libesphttpd/core/base64.c + libesphttpd/core/httpd.c + libesphttpd/core/httpdespfs.c + libesphttpd/core/httpd-freertos.c + libesphttpd/core/httpd-nonos.c + libesphttpd/core/sha1.c + libesphttpd/core/uptime.c + libesphttpd/core/httpd-platform.h + + libesphttpd/espfs/heatshrink_decoder.c + libesphttpd/espfs/heatshrink_config_custom.h + libesphttpd/espfs/espfsformat.h + libesphttpd/espfs/espfs.c + + libesphttpd/include/webpages-espfs.h + libesphttpd/include/user_config.h + libesphttpd/include/uptime.h + libesphttpd/include/sha1.h + libesphttpd/include/platform.h + libesphttpd/include/logging.h + libesphttpd/include/httpd.h + libesphttpd/include/httpdespfs.h + libesphttpd/include/espmissingincludes.h + libesphttpd/include/espfs.h + libesphttpd/include/esp8266.h + libesphttpd/include/cgiwifi.h + libesphttpd/include/cgiwebsocket.h + libesphttpd/include/cgiflash.h + libesphttpd/include/captdns.h + libesphttpd/include/base64.h + libesphttpd/include/auth.h + libesphttpd/lib/heatshrink/heatshrink_encoder.h + libesphttpd/lib/heatshrink/heatshrink_decoder.h + libesphttpd/lib/heatshrink/heatshrink_config.h + libesphttpd/lib/heatshrink/heatshrink_common.h + libesphttpd/lib/heatshrink/greatest.h + libesphttpd/lib/heatshrink/test_heatshrink_static.c + libesphttpd/lib/heatshrink/test_heatshrink_dynamic_theft.c + libesphttpd/lib/heatshrink/test_heatshrink_dynamic.c + libesphttpd/lib/heatshrink/heatshrink_encoder.c + libesphttpd/lib/heatshrink/heatshrink_decoder.c + libesphttpd/lib/heatshrink/heatshrink.c + libesphttpd/mkupgimg/mkupgimg.c + libesphttpd/util/cgiwifi.c + libesphttpd/util/cgiwebsocket.c + libesphttpd/util/cgiflash.c + libesphttpd/util/captdns.c + + esp_iot_sdk_v1.5.2/include/user_interface.h + esp_iot_sdk_v1.5.2/include/upgrade.h + esp_iot_sdk_v1.5.2/include/uart_register.h + esp_iot_sdk_v1.5.2/include/spi_register.h + esp_iot_sdk_v1.5.2/include/spi_flash.h + esp_iot_sdk_v1.5.2/include/sntp.h + esp_iot_sdk_v1.5.2/include/smartconfig.h + esp_iot_sdk_v1.5.2/include/slc_register.h + esp_iot_sdk_v1.5.2/include/queue.h + esp_iot_sdk_v1.5.2/include/pwm.h + esp_iot_sdk_v1.5.2/include/ping.h + esp_iot_sdk_v1.5.2/include/os_type.h + esp_iot_sdk_v1.5.2/include/osapi.h + esp_iot_sdk_v1.5.2/include/mesh.h + esp_iot_sdk_v1.5.2/include/mem.h + esp_iot_sdk_v1.5.2/include/ip_addr.h + esp_iot_sdk_v1.5.2/include/gpio.h + esp_iot_sdk_v1.5.2/include/ets_sys.h + esp_iot_sdk_v1.5.2/include/esp_sdk_ver.h + esp_iot_sdk_v1.5.2/include/espnow.h + esp_iot_sdk_v1.5.2/include/espconn.h + esp_iot_sdk_v1.5.2/include/eagle_soc.h + esp_iot_sdk_v1.5.2/include/c_types.h + esp_iot_sdk_v1.5.2/include/at_custom.h + esp_iot_sdk_v1.5.2/include/airkiss.h + esp_iot_sdk_v1.5.2/include/json/jsontree.h + esp_iot_sdk_v1.5.2/include/json/jsonparse.h + esp_iot_sdk_v1.5.2/include/json/json.h + + include/uart_hw.h + include/user_config.h + include/ets_sys_extra.h + user/io.c + user/io.h + user/cgi_ping.c + user/cgi_reset.c + user/uart_driver.c + user/uart_handler.c + user/ansi_parser.c + user/ansi_parser.h + user/ansi_parser.rl + user/screen.c + user/user_main.c + user/serial.c + user/serial.h + user/routes.c + user/routes.h + user/cgi_main.c + user/cgi_main.h + user/cgi_sockets.c + user/cgi_sockets.c + user/cgi_sockets.h + user/ansi_parser_callbacks.c + user/ansi_parser_callbacks.h + user/user_main.h) + +include_directories(include) +include_directories(user) +include_directories(libesphttpd/include) +include_directories(libesphttpd/espfs) +include_directories(libesphttpd/core) +include_directories(libesphttpd/lib/heatshrink) + +include_directories(esp_iot_sdk_v1.5.2/include) + +add_definitions( + -D__ets__ + -DICACHE_FLASH + -DHTTPD_MAX_CONNECTIONS=5 + -DHTTPD_STACKSIZE=1000 + -DICACHE_FLASH_ATTR= + -DICACHE_RODATA_ATTR= + -DFLAG_GZIP=2 + -DESPFS_HEATSHRINK) + +add_executable(esp_vt100_firmware ${SOURCE_FILES}) diff --git a/html_orig/.gitignore b/html_orig/.gitignore new file mode 100644 index 0000000..dec88d1 --- /dev/null +++ b/html_orig/.gitignore @@ -0,0 +1 @@ +_test_env.php diff --git a/html_orig/_test_env.php.example b/html_orig/_test_env.php.example new file mode 100644 index 0000000..4d38f09 --- /dev/null +++ b/html_orig/_test_env.php.example @@ -0,0 +1,3 @@ +