diff options
Diffstat (limited to 'code/esp32/main')
-rw-r--r-- | code/esp32/main/app_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/code/esp32/main/app_main.c b/code/esp32/main/app_main.c index 4a277cf..bd2e3e1 100644 --- a/code/esp32/main/app_main.c +++ b/code/esp32/main/app_main.c @@ -6,14 +6,17 @@ #include "_net.h" #include "wifi.h" #include "sock.h" +#include "power.h" #include "bq25895.h" +#define ESP_INTR_FLAG_DEFAULT 0 + // Main application void app_main() { tcpip_adapter_init(); eos_pcm_init(); - gpio_install_isr_service(0); + gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT); eos_modem_init(); eos_net_init(); @@ -21,6 +24,8 @@ void app_main() { eos_wifi_init(); eos_sock_init(); + eos_power_init(); + eos_i2c_init(); eos_bq25895_set_ilim(); } |