From 285ddd410a559449b7e2cbab9b2b10e850efbd08 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 7 Jan 2026 22:13:36 +0100 Subject: added APP <-> FE310 bridge SPI messages; enabled esp32 wake from deep sleep; IP tunnel for app module supports NAT and port forwadring; introduced EOSMessage struct for SPI messages; --- fw/esp32/components/eos/app_main.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'fw/esp32/components/eos/app_main.c') diff --git a/fw/esp32/components/eos/app_main.c b/fw/esp32/components/eos/app_main.c index 941e01c..885f9c8 100644 --- a/fw/esp32/components/eos/app_main.c +++ b/fw/esp32/components/eos/app_main.c @@ -9,14 +9,14 @@ #include #include -#include "cell.h" +#include "power.h" #include "net.h" +#include "app.h" +#include "rng.h" #include "wifi.h" #include "sock.h" -#include "rng.h" -#include "app.h" #include "tun.h" -#include "power.h" +#include "cell.h" #define ESP_INTR_FLAG_DEFAULT 0 @@ -33,6 +33,7 @@ void app_main() { ret = gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT); assert(ret == ESP_OK); + /* first one */ eos_power_init(); eos_net_init(); @@ -47,11 +48,13 @@ void app_main() { eos_sock_init(); eos_rng_init(); - eos_power_run(); eos_net_run(); eos_app_run(); eos_modem_run(); eos_cell_run(); eos_wifi_run(); eos_sock_run(); + + /* last one */ + eos_power_run(); } -- cgit v1.2.3