From fc70c6f78f43dbeda91d47b2d2071d4da4082121 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 28 Jul 2025 23:37:45 +0200 Subject: upgrade to ESP-IDF v5; fixed SPI net and app protocoles; reimplemented power management; --- fw/esp32/main/app_main.c | 51 ---------------------------------------------- fw/esp32/main/component.mk | 8 -------- 2 files changed, 59 deletions(-) delete mode 100644 fw/esp32/main/app_main.c delete mode 100644 fw/esp32/main/component.mk (limited to 'fw/esp32/main') diff --git a/fw/esp32/main/app_main.c b/fw/esp32/main/app_main.c deleted file mode 100644 index 79f76ab..0000000 --- a/fw/esp32/main/app_main.c +++ /dev/null @@ -1,51 +0,0 @@ -#include -#include - -#include -#include -#include -#include -#include - -#include "i2c.h" -#include "cell.h" -#include "_net.h" -#include "wifi.h" -#include "sock.h" -#include "rng.h" -#ifdef EOS_WITH_APP -#include "app.h" -#include "tun.h" -#endif -#include "power.h" - -#define ESP_INTR_FLAG_DEFAULT 0 - -// Main application -void app_main() { - esp_err_t ret; - - ret = esp_netif_init(); - assert(ret == ESP_OK); - - ret = esp_event_loop_create_default(); - assert(ret == ESP_OK); - - eos_net_init(); - - eos_cell_pcm_init(); - gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT); - - eos_modem_init(); - eos_cell_init(); - - eos_wifi_init(); - eos_sock_init(); - eos_rng_init(); - -#ifdef EOS_WITH_APP - eos_app_init(); - eos_tun_init(); -#endif - eos_power_init(); -} diff --git a/fw/esp32/main/component.mk b/fw/esp32/main/component.mk deleted file mode 100644 index 61f8990..0000000 --- a/fw/esp32/main/component.mk +++ /dev/null @@ -1,8 +0,0 @@ -# -# Main component makefile. -# -# This Makefile can be left empty. By default, it will take the sources in the -# src/ directory, compile them and link them into lib(subdirectory_name).a -# in the build directory. This behaviour is entirely configurable, -# please read the ESP-IDF documents if you need to do this. -# -- cgit v1.2.3