repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[mTask.git]
/
client
/
interface.h
diff --git
a/client/interface.h
b/client/interface.h
index
9e16292
..
738dd85
100644
(file)
--- a/
client/interface.h
+++ b/
client/interface.h
@@
-10,8
+10,8
@@
extern "C" {
#include <stdarg.h>
#ifdef LINUX
#include <stdarg.h>
#ifdef LINUX
-#define
MAXTASKS 5
-#define M
AXSDSS 100
+#define
STACKSIZE 1024
+#define M
EMSIZE 1024
#define HAVELED 1
#define HAVEAIO 1
#define HAVEDIO 1
#define HAVELED 1
#define HAVEAIO 1
#define HAVEDIO 1
@@
-20,26
+20,32
@@
extern int gargc;
extern char **gargv;
#elif defined STM
extern char **gargv;
#elif defined STM
-#define
MAXTASKS 5
-#define M
AXSDSS 100
+#define
STACKSIZE 1024
+#define M
EMSIZE 1024
#define HAVELED 1
#define HAVEAIO 1
#define HAVEDIO 1
#elif defined ARDUINO_ESP8266_NODEMCU
#define HAVELED 1
#define HAVEAIO 1
#define HAVEDIO 1
#elif defined ARDUINO_ESP8266_NODEMCU
-#define
MAXTASKS 5
-#define M
AXSDSS 100
+#define
STACKSIZE 1024
+#define M
EMSIZE 1024
#define HAVELED 0
#define HAVEAIO 0
#define HAVEDIO 0
#define HAVELED 0
#define HAVEAIO 0
#define HAVEDIO 0
+#elif defined ARDUINO_AVR_UNO
+#define STACKSIZE 64
+#define MEMSIZE 256
+#define HAVELED 0
+#define HAVEAIO 0
+#define HAVEDIO 0
#else
//Add you device here
#endif
#define read16() 256*(uint8_t)read_byte() + (uint8_t)read_byte()
#define from16(a, b) 256*a+b
#else
//Add you device here
#endif
#define read16() 256*(uint8_t)read_byte() + (uint8_t)read_byte()
#define from16(a, b) 256*a+b
-#define write16(i) { write_byte((uint8_t)
i/256); write_byte((uint8_t)i%256
); }
+#define write16(i) { write_byte((uint8_t)
(i/256)); write_byte((uint8_t)(i%256)
); }
/* Communication */
bool input_available(void);
/* Communication */
bool input_available(void);
@@
-71,6
+77,7
@@
void real_setup(void);
void debug(char *fmt, ...);
void pdie(char *s);
void die(char *fmt, ...);
void debug(char *fmt, ...);
void pdie(char *s);
void die(char *fmt, ...);
+void reset(void);
#ifdef __cplusplus
}
#ifdef __cplusplus
}