summaryrefslogtreecommitdiff
path: root/src/arch/esp8266/arch.cc
blob: 634cf409c5523c2d81130bf9db4ead447aae49b5 (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
#include "arch.h"

extern "C" {
#include "ets_sys.h"
#include "osapi.h"
#include "os_type.h"
#include "user_interface.h"
#include "gpio.h"
#include "mem.h"
}

#define user_procTaskPrio        0
#define user_procTaskQueueLen    1

extern int main(void);

static void ICACHE_FLASH_ATTR jump_to_main(void)
{
	main();
}

void Arch::setup(void)
{
}

void Arch::idle_loop(void)
{
}

extern "C" void user_init(void)
{
	system_init_done_cb(jump_to_main);
}

Arch arch;