diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-05 16:00:05 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-05 16:00:05 +0100 |
commit | 6bdfa059a45b8b0dffc392e994827467463f0103 (patch) | |
tree | 9d2a7ff61dafbb2522a0a70f16179592e7c64096 /src/arch/esp8266/arch.cc | |
parent | 7b5284023070b841293d0c5a6be0c6c345372cde (diff) |
Add basic ESP8266 support
Diffstat (limited to 'src/arch/esp8266/arch.cc')
-rw-r--r-- | src/arch/esp8266/arch.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/arch/esp8266/arch.cc b/src/arch/esp8266/arch.cc new file mode 100644 index 0000000..e7a26bb --- /dev/null +++ b/src/arch/esp8266/arch.cc @@ -0,0 +1,30 @@ +#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); + +void Arch::setup(void) +{ +} + +void Arch::idle_loop(void) +{ +} + +extern "C" void user_init(void) +{ + main(); +} + +Arch arch; |