diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-05-17 04:03:16 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-05-17 04:03:16 +0200 |
commit | 5d157b4f7ecea4793c9da5c33a890d4ea4afc545 (patch) | |
tree | 6309b33a6d8e5f6beb068e59e001e66c9f677d2a /code/esp32/main/app_main.c | |
parent | 1cafcbd398fa0e5a4afb1ade33ecf21694cde235 (diff) |
power management implemented; net protocol change
Diffstat (limited to 'code/esp32/main/app_main.c')
-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(); } |