summaryrefslogtreecommitdiff
path: root/code/esp32/main/app_main.c
blob: 19ad85cc102935487b641b32db8fb4fce476f2b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#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"

// Main application
void app_main() {
    eos_i2c_init();
    eos_modem_init();
    eos_pcm_init();
    eos_wifi_init();
    eos_fe310_init();
    eos_bq25895_set_ilim();
}