summaryrefslogtreecommitdiff
path: root/fw/esp32/components/eos/app_main.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2026-01-07 22:13:36 +0100
committerUros Majstorovic <majstor@majstor.org>2026-01-07 22:13:36 +0100
commit285ddd410a559449b7e2cbab9b2b10e850efbd08 (patch)
treed6cfe1577675c3478444f0b82b7c5f56bd6b174f /fw/esp32/components/eos/app_main.c
parent2357302c5e0228c1209b747cc5e0b11d7bef0a02 (diff)
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;
Diffstat (limited to 'fw/esp32/components/eos/app_main.c')
-rw-r--r--fw/esp32/components/eos/app_main.c13
1 files changed, 8 insertions, 5 deletions
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 <esp_err.h>
#include <esp_log.h>
-#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();
}