diff options
Diffstat (limited to 'fw/esp32/components/eos/app_main.c')
| -rw-r--r-- | fw/esp32/components/eos/app_main.c | 13 |
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(); } |
