diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-12-04 06:12:15 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-12-04 06:12:15 +0100 |
commit | 4c28fb525edc64fa16c6c3bf10929dca65d9c77c (patch) | |
tree | 2531b3bcc2d06c655f6eb9a6233696f5eadfa089 /code/esp32/main | |
parent | 31578e285a21a749a49e3ac146feb8b02fcc7b52 (diff) |
esp32 refactoring
Diffstat (limited to 'code/esp32/main')
-rw-r--r-- | code/esp32/main/app_main.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/code/esp32/main/app_main.c b/code/esp32/main/app_main.c index 19ad85c..afaee91 100644 --- a/code/esp32/main/app_main.c +++ b/code/esp32/main/app_main.c @@ -1,34 +1,19 @@ -#include <stdio.h> -#include <stdint.h> -#include <stddef.h> -#include <string.h> - -#include <freertos/FreeRTOS.h> -#include <freertos/task.h> -#include <freertos/semphr.h> - -#include <esp_system.h> -#include <esp_event.h> -#include <esp_event_loop.h> -#include <esp_log.h> -#include <esp_err.h> -#include <driver/spi_slave.h> - -#include "fe310.h" #include "i2c.h" #include "modem.h" #include "pcm.h" -#include "transport.h" -#include "bq25895.h" +#include "_net.h" +#include "sock.h" +#include "wifi.h" // Main application void app_main() { eos_i2c_init(); eos_modem_init(); eos_pcm_init(); + eos_net_init(); eos_wifi_init(); - eos_fe310_init(); - eos_bq25895_set_ilim(); + eos_sock_init(); + // eos_bq25895_set_ilim(); } |