diff options
| author | Uros Majstorovic <majstor@majstor.org> | 2020-05-24 00:00:38 +0200 | 
|---|---|---|
| committer | Uros Majstorovic <majstor@majstor.org> | 2020-05-24 00:00:38 +0200 | 
| commit | 375ac3b0c7e9ed8b2d2d0fc4d0700a23c8865836 (patch) | |
| tree | 2b2b53c1b1823a606983061f4d6f61e7478cc611 /code/esp32/main | |
| parent | 8cab5fea518d4bf6c680816f8ba8b7b7d9ee7401 (diff) | |
esp32 deep sleep implemented
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 bd2e3e1..b700a8e 100644 --- a/code/esp32/main/app_main.c +++ b/code/esp32/main/app_main.c @@ -1,5 +1,9 @@ +#include <freertos/FreeRTOS.h> +#include <freertos/task.h> +  #include <tcpip_adapter.h>  #include <driver/gpio.h> +#include <esp_sleep.h>  #include "i2c.h"  #include "cell.h" @@ -15,11 +19,12 @@  void app_main() {      tcpip_adapter_init(); +    eos_net_init(); +      eos_pcm_init();      gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT);      eos_modem_init(); -    eos_net_init();      eos_cell_init();      eos_wifi_init();      eos_sock_init();  | 
