repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started with nodeMCU support
[mTask.git]
/
client
/
main.c
diff --git
a/client/main.c
b/client/main.c
index
720fd1a
..
4919d9d
100644
(file)
--- a/
client/main.c
+++ b/
client/main.c
@@
-3,9
+3,13
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#ifdef STM
-#else
+#ifdef LINUX
#include <stdio.h>
#include <stdio.h>
+#elif defined NODEMCU
+#include "ets_sys.h"
+#include "osapi.h"
+#include "gpio.h"
+#include "os_type.h"
#endif
#include "interpret.h"
#endif
#include "interpret.h"
@@
-101,7
+105,9
@@
void loop(void)
#ifdef STM
int main(void){
#ifdef STM
int main(void){
-#else
+#elif defined NODEMCU
+void ICACHE_FLASH_ATTR user_init(){
+#elif defined LINUX
int main(int argc, char *argv[]){
gargc = argc;
gargv = argv;
int main(int argc, char *argv[]){
gargc = argc;
gargv = argv;
@@
-113,9
+119,12
@@
int main(int argc, char *argv[]){
task_init();
debug("sending device spec");
while(true){
task_init();
debug("sending device spec");
while(true){
- //Check for new
e
tasks
+ //Check for newtasks
loop();
delay(100);
}
loop();
delay(100);
}
+
+#ifndef NODEMCU
return 0;
return 0;
+#endif
}
}