From 5d157b4f7ecea4793c9da5c33a890d4ea4afc545 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 17 May 2020 04:03:16 +0200 Subject: power management implemented; net protocol change --- code/esp32/main/app_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'code/esp32/main/app_main.c') 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(); } -- cgit v1.2.3