diff --git a/src/sys/svc/hasp_http.cpp b/src/sys/svc/hasp_http.cpp index 8e1160bf..318d4efb 100644 --- a/src/sys/svc/hasp_http.cpp +++ b/src/sys/svc/hasp_http.cpp @@ -71,7 +71,7 @@ ESP8266WebServer webServer(80); #include WebServer webServer(80); -#if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3) +#if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3) extern const uint8_t EDIT_HTM_GZ_START[] asm("_binary_data_static_edit_htm_gz_start"); extern const uint8_t EDIT_HTM_GZ_END[] asm("_binary_data_static_edit_htm_gz_end"); extern const uint8_t STYLE_CSS_GZ_START[] asm("_binary_data_static_style_css_gz_start"); @@ -2310,7 +2310,7 @@ static inline int handleFirmwareFile(String path) path = path.substring(7); } -#if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3) +#if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3) if(path == F("/edit.htm")) { return http_send_static_gzip_file(EDIT_HTM_GZ_START, EDIT_HTM_GZ_END, contentType); // } else if(path == F("/hasp.htm")) { // 39 kB diff --git a/user_setups/esp32c3/_esp32c3.ini b/user_setups/esp32c3/_esp32c3.ini new file mode 100644 index 00000000..20811d99 --- /dev/null +++ b/user_setups/esp32c3/_esp32c3.ini @@ -0,0 +1,22 @@ +; -- Platform specific build flags +[esp32c3] +extends = esp32 +board_build.mcu = esp32c3 +board_build.f_cpu = 160000000 + +ps_ram = + -DBOARD_HAS_PSRAM + -D HASP_USE_FREETYPE=1 + -D LV_USE_FREETYPE=1 +no_ps_ram = + -D HASP_USE_FREETYPE=1 + -D LV_USE_FREETYPE=1 + +; -- The Arduino ESP32 v2.0.2 with 3 available flash sizes: +[arduino_esp32c3_v2] +extends = esp32c3 +framework = arduino +;platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.01.01/platform-espressif32.zip +platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.06.04/platform-espressif32.zip +;platform = espressif32@5.3.0 +