blob: 1aae20107b7854bfb75f1669194b750aabdb35d0 (
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
35
36
37
38
39
40
|
#include "event.h"
#include "interrupt.h"
#include "timer.h"
#include "power.h"
#include "i2s.h"
#include "uart.h"
#include "spi.h"
#include "net.h"
#include "wifi.h"
#include "cell.h"
#include "sock.h"
#include "eve/eve.h"
#include "eos.h"
uint32_t eve_touch[6] = {0xfa46,0xfffffcf6,0x422fe,0xffffff38,0x10002,0xf3cb0};
void eos_init(void) {
uint8_t wake_src = eos_power_cause_wake();
eos_evtq_init();
eos_intr_init();
eos_timer_init();
eos_i2s_init();
eos_uart_init();
eos_spi_init();
eos_net_init();
eos_power_init();
eos_wifi_init();
eos_cell_init();
eos_sock_init();
eos_spi_dev_init();
eos_net_wake(wake_src);
eve_set_touch_calibration(eve_touch);
eos_spi_dev_start(EOS_DEV_DISP);
eve_init(wake_src == EOS_PWR_WAKE_RESET);
eos_spi_dev_stop();
}
|